Click to See Complete Forum and Search --> : JSP at run time


scottjsn
01-15-2008, 04:08 PM
It is said, during the run time, the JSP is converted to a Java servlet. My questions are:

1) Will all the content on the JSP page be converted into the java servlet class including <html related, scriptlet <% %>, javascript, tags etc?

2) If not, what about the javascript? Will it be converted into java scriptlet or, instead, it will be compiled and run by the javascript's engine?


Thanks


Scott

chazzy
01-15-2008, 06:09 PM
The individual implementations are dependent on the app server you are using. Javascript is javascript, it never gets converted. Most HTML is just replaced by out.println(value) rather than just value.

It might help you to see an actual generated JSP as servlet page.