The JSPC tool does exactly that, it generates .java files.  You have to
compile them in your build step.  You also need to make sure that your
JSPC tool generates a "web.xml" excerpt that can be semi-automatically
or automatically (by JSPC) merged into your main "web.xml" file.  The
"web.xml" excerpt contains the servlet mappings for the generated
servlets.  If you don't include this, your JSP pages will still be
recompiled again when they are used at runtime.  The best test to make
sure you've done everything right in precompiling JSPs is to not include
the JSP pages in the WAR file.

> -----Original Message-----
> From: Molof, Barry [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 28, 2003 10:07 AM
> To: Tomcat Users List
> Subject: RE: Compile JSP on Tomcat Startup
> Importance: High
> 
> Can someone PLEASE help me?  This is an urgent issue.
> 
> Thanks
> 
> -----Original Message-----
> From: Molof, Barry
> Sent: Friday, February 28, 2003 10:02 AM
> To: Tomcat Users List
> Subject: RE: Compile JSP on Tomcat Startup
> 
> I tried jspc and all it did was convert .jsp to .java, instead of
> .class.  I'm looking for a solution that handles the conversion of
.jsp
> to .java to .class files during Tomcat 3.3.1a startup.
> 
> Can anyone else help?
> 
> Thanks
> 
> -----Original Message-----
> From: Mr. Cristian Romanescu [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 26, 2003 3:07 AM
> To: Tomcat Users List
> Subject: Re: Compile JSP on Tomcat Startup
> 
> I think that you would use jspc (JSP compiler) that comes with Tomcat
> distribution. It's materialized in jsp.bat[sh] in
> $TOMCAT_HOME/bin directory. I hope I'm correct, but I cannot give you
> more
> info....
> 
> regards,
> c.
> 
> At 04:07 PM 2/25/2003 -0500, you wrote:
> >How can I compile all of my JSPs when I start Tomcat?  The version I
am
> >using is 3.3.1a.  Any help would be great.
> >
> >Thanks.
> >Barry
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to