Comments on: (Pre)-compiling JSP for Tomcat with Jasper https://technology.amis.nl/2005/01/05/precompiling-jsp-for-tomcat-with-jasper/ Friends of Oracle and Java Mon, 04 May 2015 08:10:38 +0000 hourly 1 http://wordpress.org/?v=4.2.1 By: javaBean https://technology.amis.nl/2005/01/05/precompiling-jsp-for-tomcat-with-jasper/#comment-1336 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!
http://expertzforum.com

]]>
By: Noel Grandin https://technology.amis.nl/2005/01/05/precompiling-jsp-for-tomcat-with-jasper/#comment-1335 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.

]]>