Skip to main content

[webtier] Re: How can I get the mapping for the JSP and compiled Servlet.

1 reply [Last post]
Anonymous

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Jan Luehe

Peng,

The JSP compiler automatically generates a source map (SMAP) according
to JSR 045.
The SMAP serves to associate lines of the input JSP file(s) to lines in
the generated servlet .class file.

This can be disabled by setting the "suppressSmap" init-param of the
JspServlet to "false"
(either globally in your domain's default-web.xml, or for an individual
app).

You may also instruct the JSP compiler to dump the SMAP into a file
(named for the generated
servlet .class file, and suffixed by ".smap") by setting the "dumpSmap"
init-param of the
JspServlet to "true".

Jan

On 08/25/08 03:16 PM, Peng Li wrote:
> HI
> In glassfish, I can use keepgenerated option to make Glassfish to keep
> the Servlets for the JSPs that have been accessed. Now, I would like
> to see more details for this translation(from JSP to Servlet). I am
> wondering if Glassfish has a table or map to record the mapping bewten
> each line in JSP to the line numbers in Servlet?
>
> Cheers
> Peng
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: webtier-help@glassfish.dev.java.net