If we can make Tomcat/Jasper compile JSPs using an
ANT task, wouldn't it better to ship the WAR with pre-compiled
JSP class files, rather than JSPs themselves?
That way, we are not tied down with Weblogic/Webshere JSP compilation issues. All that they would get are 'class' files.
I think this would need that the "jsp"
servlet would have to be turned off somehow. And the Spring/Struts Servlet will have to enabled to handle 'jsp' extension.
What I am thinking is that: Pre-compile JSPs > to
Java > to Class files, using Jasper. And then package Jasper JAR(s) with my WAR file's WEB-INF/lib.
What do you think? And what is the more commonly done thing in other production environments?