If we can make Tomcat/Jasper compile JSPs using an ANT task, wouldn’t it better to ship the WAR with pre-compiled JSPs as 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 do you think? And what is the more commonly done thing in other production environments?
I would generally say no it’s not better. I think it’s too much trouble to go through, then just packaging the ear/war up and shipping.
If you’re JSP’s aren’t compiling in production, and are compiling locally or in QA then you have other issues that need to be solved as well.