Hi Dude,
Compile your jsp page into a servlet, then make your servlet appear as 
a jsp page, by doing the following in your web.xml.

The Servlet is made to look as a JSP page with the following web.xml:
<!DOCTYPE webapp
SYSTEM "http://java.sun.com/j2ee/dtds/web-app_1_2.dtd">
<webapp>
<servlet>
<servlet-name> HelloWorld </servlet-name>
<servlet-class> HelloWorld.class </servlet-class>
</servlet>
<servlet-mapping>
<servlet-name> HelloWorld </servlet-name>
<url-pattern> /HelloWorld.jsp </url-pattern>
</servlet-mapping>
<session-config>
<session-timeout> 1 </session-timeout>
</session-config>
</webapp>

----- Original Message -----
From: "Matt Krevs" <[EMAIL PROTECTED]>
Date: Tuesday, November 28, 2000 5:06 pm
Subject: Reusing compiled JSPs on another machine

> We often deploy our web app on multiple machines
> 
> Currently this is a painful process as we have to hit each page on 
> eachmachine (we run a script to do this) so the pages are compiled 
> when the
> testers test the app.
> 
> I have played around with compiling the pages one 1 machine and 
> copying the
> compiled code onto other machines.
> 
> However the pages on the other machine ignore the copied source 
> code and
> recompile.
> 
> Anyone know what I can do so I can "compile once -> deploy anywhere"?
> 
> Thanks
> 
> 
> 


Reply via email to