This week's giveaway is in the Java/Jakarta EE forum. We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line! See 2. You can place your JSP files in the WEB-INF folder which has no direct url web access.
[ August 17, 2006: Message edited by: Gregg Bolinger ] [ August 17, 2006: Message edited by: Gregg Bolinger ]
Originally posted by Jeppe Fjord: Is it possible to run the JSP files being compiled (*.java files) in the \WEB-INF\work directory only, and delete all the JSP f�les from the application?
Yes it is possible. There is really no advantage, though.
Originally posted by Bear Bibeault: Why on earth would you want to do that?
You wouldn't. What you would want to do is go the very next step and compile the .java into .class, stick the result under the classes directory (with the appropriate folder tree), and update the web.xml to handle them.
The advantage to this method is the normal delay in accessing each JSP does not exist, because it is already compiled into bytecode (.class).
<soapbox> If you're compiling the JSPs and modifying the web.xml manually, you aren't doing it correctly. Only use an automated build tool to do this, because otherwise you are wasting your time that could be better spent coding.
One such tool that does this is Maven 1.x with the tomcat plugin from codehaus. </soapbox>