Comments on: (Pre)-compiling JSP for Tomcat with Jasper Friends of Oracle and Java Mon, 04 May 2015 08:10:38 +0000 hourly 1 By: javaBean Fri, 19 Sep 2008 14:09:56 +0000 /?p=318#comment-1336 hey this is a very good tutorial.
thank you for the codes.
very helpful!

By: Noel Grandin Thu, 13 Jan 2005 07:33:02 +0000 /?p=318#comment-1335 In a previous project I precompiled the JSPs, obfuscated the resulting class files, and packaged them into the webapp.
This required that I copy and paste and modify the JspServlet class from the tomcat source code and lightly modify it – mostly stripping out unnecessary stuff.
Then I did a *.jsp mapping in web.xml to my new JspServlet, included jsp-runtime.jar in my webapp (so that I did not get version inconsistencies when deploying on newer versions of tomcat)
and voila!
No precompilation stage, the webapp is fast right from startup, and no JSP source code in the delivered WAR file.