tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Drake" <...@pobox.com>
Subject Re: Precompile JSP
Date Thu, 15 Nov 2001 20:51:41 GMT
Not true. You can deploy your pre-compiled jsp's in the
form of java classes. There is no need to deploy jsp source
code. You'll need to make corresponding mapping
entries in your web.xml, however.

----- Original Message -----
From: "pero" <pero@antaramusic.de>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Thursday, November 15, 2001 12:07 PM
Subject: RE: Precompile JSP


| Note: Jspc doesn't compile your jsps as the webserver would do. That means
| that when you call jspc and start the server afterwards then the webserver
| will compile the jsps itselft again (at least this is my experience). I
| think the main purpose of jspc is to get rid of your jsp-files since it
| simply converts them to servlet (and generates the correct servlet-config
| for your web.xml). Another solution to simply compile a jsp is to call it
| (from a browser) with the jsp_precompile=true parameter (example:
| http://localhost:8080/my.jsp?jsp_precompile=true) Then the jsp will be
| compiled but NOT executed.
| I simply wrote a servlet that goes through the whole web-app and calls all
| jsps this way.
| The Java-Code to call one jsp would be:
|
| URL url = new URL ("http://localhost:8080/my.jsp?jsp_precompile=true");
| URLConnection con = url.openConnection();
| con.getInputStream();
|
| Hope this helps (or at least adds another point of view to the discussion)
|
| pero
|
| > -----Original Message-----
| > From: Tom Parker [mailto:tomp@econz.co.nz]
| > Sent: Thursday, November 15, 2001 8:54 PM
| > To: Tomcat Users List; Tom Drake
| > Subject: RE: Precompile JSP
| >
| >
| > > Try bin/jspc.bat or jspc.sh
| >
| > I would like to compile my jsp's as a test before I deploy it and
| > see if it
| > works. I spend quite a lot of time changing stuff, deploying, loading in
a
| > web browser and seeing jsp compiliation problems.
| >
| > It would be nice to have jspc compile my jsp's during the deployment
| > process. I tried this and it seems to recompile everything,
| > rather than only
| > those files that have changed.
| >
| > Is there a depends option to jspc?
| >
| > The obvious solution is to use ant to only compile those files that have
| > changed, but there doesn't seem to be an equivelent of make's
| > .c.o option in
| > ant. Is there a dependset creator anywhere, if there isn't a generic
.c.o
| > type task?
| >
| >
| > --
| > To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
| > For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
| > Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
| >
| >
|
|
| --
| To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
| For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
| Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
|
|
|


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message