>Uzytkownik "Arne Vajhøj" <> napisal w wiadomosci
>> JSP pages get compiled to servlets so performance should
>> be the same.
Robert Magdziarz <> wrote:
>Does this mean that when I open URL http://localhost/xyz/xyz.jsp the code in
><% %> is run compiled, not interpreted?
Yes. The JSP container generates Servlet bytecode (sometimes directly,
sometimes by generating java source and compiling it, and sometimes at
build-time rather than on the first request to the server) from the jsp text.
For most servlet containers, this means the first request of a jsp that hasn't
already been compiled can take quite a bit longer than subsequent requests. A
lot of sytems have the option to precompile your JSPs to avoid this behavior,
but you then lose the ability to edit and see changes without rebuilding and
redeploying.
--
Mark Rafn
<http://www.dagon.net/>