Thanks for your response. For the first of the two options you presented, what exactly happens during the web.xml autogeneration? Will it simply change only the <servlet> elements but leave everything else as is in my current web.xml, including <servlet-mapping>? Is there anything else it changes?
The less it changes, the more my development (pre-deployment) would be as close to production as possible, I'm guessing... Thanks. Rashmi Rubdi-2 wrote: > > On 5/25/07, lightbulb432 <[EMAIL PROTECTED]> wrote: >> >> The JSP spec says that if you precompile JSPs you can reduce the JSP >> container footprint by excluding the JSP compiler. How can this be done >> in >> Tomcat? > > I know of 2 ways to pre-compile JSPs > > 1) http://tomcat.apache.org/tomcat-4.1-doc/jasper-howto.html > > If you're using Ant , than you can add the above jasper task to > your build process. > The process first converts all JSPs to .java files, and then all .java > files are compiled to .class files , during this process the web.xml > is also auto-modified and there's an entry for every JSP page in your > app. > > Pre-compiling with jasper is very slow (expected behavior) , so it is > recommended that the pre-compile should be done just before deploying > the app to production , there's no need to pre-compile while > developing/ testing JSPs. > > 2) Use JSP Unit testing tools like HttpUnit or Apache Cactus, as the > tools test each JSP page they acces the JSP pages for the ~first time~ > , this essentially compiles all JSP pages , then move the war file to > production. > > Many recommend the 2nd option as it makes your pre-compiled code > portable aross containers. > >> Thanks. > > Regards > Rashmi > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Excluding-JSP-compiler-from-Tomcat-tf3817429.html#a10837549 Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]