You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by na...@freddiemac.com on 2003/04/07 21:36:58 UTC

Pre compilation of JSPs in Tomcat 4.0.4

All,

     How to implement pre compilation of JSPs in tomcat 4.0.4? Any leads on
where to find more info? Please advise, if you have implemented this
feature at your shop.

Thanks
Narsi Kota



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Pre compilation of JSPs in Tomcat 4.0.4

Posted by Lee Peik Feng <pf...@syabas.com>.
1) Run jspc to generate java files and web.xml

eg:
<tomcat>\bin\jspc -uriroot <tomcat>\webapps\<your-webapp> -d
<tomcat>\webapps\<your-webapp>\WEB-INF\classes -webxml
<tomcat>\webapps\<your-webapp>\WEB-INF\web.xml -webapp
<tomcat>\webapps\<your-webapp>

2) Compile java files

eg:
javac -classpath "<tomcat>\common\lib\servlet.jar";... *.java


alternatively, you may use ant to do the JSPC task. It's easier and simpler.




----- Original Message -----
From: <na...@freddiemac.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Tuesday, April 08, 2003 3:36 AM
Subject: Pre compilation of JSPs in Tomcat 4.0.4


> All,
>
>      How to implement pre compilation of JSPs in tomcat 4.0.4? Any leads
on
> where to find more info? Please advise, if you have implemented this
> feature at your shop.
>
> Thanks
> Narsi Kota
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org