Compile JSP

I know the JSP will be compiled in the first time the page is called. Is there a way to pre-compile the JSP so that the user doesn't have to wait in the first time the page is used?Thx
[206 byte] By [smallsun] at [2007-9-26 3:05:07]
# 1

Hi smallsun,

The JRunPro 2.3.1 release includes a utility called JSPC. The JSPC (JSP Compiler) is a java tool used to compile JSP pages to Java class files out of the context of a web server.

This utility and more information is installed at this location:

/usr/local/jrun/contrib/jspc

Once you have pre-compiled your JSP files into Java files, you can then use Jikes or any other Java compiler to create Class files.

Regards,

Tirumalarao

Developer Technical Support,

Sun Microsystems,India

rao_indts at 2007-6-29 11:06:35 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
but I am using Weblogic. Can I pre-compile the java files in Weblogic?
smallsun at 2007-6-29 11:06:35 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
There is a class webloigc.jspc in weblogic for compiling JSPs.
neville_sequeira at 2007-6-29 11:06:35 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

Hi smallsun,

When ever you start the application for the first time it takes some time for the web pages to come up. It is because the WebLogic will compile dynamic JSP. you can configure WebLogic to pre-compile all JSP pages, you have to add these lines in web.xml:

<web-app>

<context-param>

<param-name>weblogic.jsp.precompile</param-name>

<param-value>true</param-value>

</context-param>

</web-app>

I hope this will help you out.

Regards,

Tirumalarao

Developer Technical Support,

Sun Microsystems,India.

rao_indts at 2007-6-29 11:06:35 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...