Tomcat documentation advises pre-compilation is used only to test all your jsps compile ok. Not to deploy pre-compiled jsps but instead to use something like httpunit, or a webload script to automatically call your jsps to be compiled by tomcat. However the Jasper documentation states to go ahead to use Ant's jspc task to precompile then deploy!
If you want to give it a go the Ant & Jasper documentation for jspc is all you should need. http://ant.apache.org/manual/index.html http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jasper-howto.html#Web%20Appl ication%20Compilation. Also check out Maven - it has a web.xml merge function you could use to fully automate a build,compile, deploy script. You could also try the alpha Tomcat 5. Quoted from http://jakarta.apache.org/tomcat/ "Refactored application deployer, with an optional standalone deployer allowing validation and compilation of a web application before putting it in production". I would be interested to hear how and what you do.. Cheers Euan -----Original Message----- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: 08 June 2003 19:01 To: Tomcat Users List Subject: Re: precompiled jsp's as a part of application war file - Precompile your jsp's - Precompiling also involves changing your web.xml to map jsp files to the compiled version of your class Precompiling involves translating your jsp's to class files webapp build time (instead of run time) via jspc(?). The class files will reside in your WEB-INF/classes directory somewhere. I have never done precompiling in 4.X (so I don't the actual tech instructions of how to do so) -Tim Rob wrote: > I would like to bundle my application into a single .war file. > In addition I would like to include the precompiled .jsp files > in the war file as opposed to the .jsp files themselves. > > Is there a way to do this? I would like to deploy my > application to a target without a `javac`. > > A description of how would be appreciated, particularly > where within my hierarchy I place the class files and how it > affects the requests for those .jsp files (ie can a person still > type in http://www.foo.com/myapp/my.jsp) or do they end up > being used as servlets instead? > > Thanks > > Rob > > > --------------------------------------------------------------------- > 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]
