tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randy Layman <randy.lay...@aswethink.com>
Subject RE: Deploying precompiled jsp without .jsp file
Date Thu, 02 Aug 2001 16:28:31 GMT

	It won't work quite the way that you are proposing, but there is a
way to accomplish this.  First, use jspc.sh|.bat to precompile your JSPs.
(Use the -webxml option).  Now, use javac to compile the .java from jspc to
.class.  Copy this to the WEB-INF/classes or incorporate into a jar in
WEB-INF/lib.  Now modify your web.xml file to include the fragment produced
by jspc.  And that's it.  All of your webapp is now a bunch of servlets
without any JSP files.

	Randy


> -----Original Message-----
> From: Shahed A Moolji [mailto:shahed@enoor.com]
> Sent: Thursday, August 02, 2001 12:15 PM
> To: tomcat-user@jakarta.apache.org
> Subject: Deploying precompiled jsp without .jsp file
> 
> 
> Hi,
> 
> Is it possible to distribute precompiled jsp's using
> standalone tomcat, but not distribute the .jsp source file ?
> 
> Also, is the same possible when tomcat is integrated with
> Apache etc ?
> 
> ie. I go to http://myserver.com:8080/a.jsp and a.jsp does not exist
> under the webapps/<context> directory, but a precompiled class
> does exist under the WORK directory.
> 
> Thanks
> Shahed.
> 

Mime
View raw message