| JSP script parsing [message #219709] |
Wed, 27 August 2008 17:16  |
Cameron Bateman Messages: 480 Registered: July 2009 |
Senior Member |
|
|
When a JSP document is parsed, is anything done with JSP scripts (i.e.
scriptlets, declarations, expressions (non-EL) etc.) other than
partitioning them? Is any effort made to parse the script or provide
design-time support for it?
Thanks,
Cameron
|
|
|
| Re: JSP script parsing [message #222574 is a reply to message #219709] |
Mon, 06 October 2008 06:29  |
 |
Nitin Dahyabhai Messages: 1853 Registered: July 2009 |
Senior Member |
|
|
Cameron Bateman wrote:
> When a JSP document is parsed, is anything done with JSP scripts (i.e.
> scriptlets, declarations, expressions (non-EL) etc.) other than
> partitioning them? Is any effort made to parse the script or provide
> design-time support for it?
Yes, an on-the-fly translation is done by the JSP model to build
source resembling the Servlet that a JSP container would create, and
then run through the JDT compiler for problem reporting. The
translation contains information on the bidirectional mappings
between scripting areas in the JSP file and the generated Servlet
source that's used for a number of functions in the source editor.
You'll have to give a little more details on what you mean by
design-time support, though, for more concrete answers.
--
---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational
---
Nitin Dahyabhai
Eclipse WTP, IBM
|
|
|
Powered by
FUDForum. Page generated in 0.01590 seconds