"Amornkul, Woody" wrote:
> Hi,
> I'm working on a test application where the servlet do a "forward"
> to the JSP page. I've found that it took a long time to load up
> and display the JSP page on the FIRST run. I do kinda understand why it
> does that but wondering whether there is a way to "pre-load"
> the JSP page into the memory.
>
The delay you observe is the time it takes to generate the Java code corresponding
to the JSP page, and then to compile it.
In JSP 1.0, there is no standard way to request this ahead of time. However, if
you don't modify your JSP pages between server restarts, most containers will
continue to use the last compiled version.
In JSP 1.1, you send a special request to the JSP container, with a query
parameter "jsp_precompile" to ask the container to precompile this page.
>
> Thank you,
> Woody Amornkul
>
Craig McClanahan
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html