Pre-compile of JSP

X-Application Version: 4.1.1
Tamino Version : 4.1.1
Platform : Win2k
WebContainer : Tamocat 4.1.17
JDK Version : 1.4.1

Hi

I got this from the Sun site:
“Pages built using JSP technology are typically implemented using a translation phase that is performed once, the first time the page is called. The page is compiled into a Java Servlet class and remains in server memory, so subsequent calls to the page have very fast response times.”

My question:
Is it possible to pre-compile JSP pages so that the first time load is not so slow?

Thanks
Elsabe Jacobs

Yes, it is: use
jspc.bat
in Tomcat’s bin directory.

I have not used it myself, but from looking at the help message printed if you invoke it without arguments it seem pretty easy - you just have to issue
jspc -webapp

Gook look,

Michael

Software AG Germany, Darmstadt

Thanks for this. In principle it does sound simple but in practice …

I am getting:

error:null
2003-11-05 07:45:27 - ERROR-the file '\browse.jsp' generated the following general exception: java.lang.NullPointerException  



Does anybody have any ideas for the reason? Could it be a classpath problem?

Thanks
Elsabe