Please find attached my ant file, which should be self-explanatory. Set-up is
to use Tomcat 3.3's jspc.
You have to change your server configuration to use the pre-compiled JSPs. I
added the following mappings in web.xml in my WEB-INF directory:
...
<!-- to use compiled jsps -->
<servlet-mapping>
<servlet-name>
index
</servlet-name>
<url-pattern>
/index.jsp
</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>
indexBar
</servlet-name>
<url-pattern>
/indexBar.jsp
</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>
login
</servlet-name>
<url-pattern>
/login.jsp
</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>
logFilter
</servlet-name>
<url-pattern>
/logFilter.jsp
</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>
log
</servlet-name>
<url-pattern>
/log.jsp
</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>
logging
</servlet-name>
<url-pattern>
/logging.jsp
</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>
parameters
</servlet-name>
<url-pattern>
/parameters.jsp
</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>
trace
</servlet-name>
<url-pattern>
/trace.jsp
</url-pattern>
</servlet-mapping>
Hope that helps,
Dave
(See attached file: build.xml)
"Spencer Smith" <[EMAIL PROTECTED]> on 05/31/2001
02:25:07 PM
Please respond to [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc: (bcc: David Hay/Lex/Lexmark)
Subject: Re: Precompiling JSP Pages?
Definately need more info--Thanks!. Once you have all the jsp files
compiled into classes, do you
1> delete all the jsp files (and tomcat will automatically use these)
OR
2> is there a setting in tomcat to not auto-recompile the jsp files?
Also, what is the command line for Ant to do this?
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 31, 2001 10:49 AM
Subject: RE: Precompiling JSP Pages?
>
>
> I am pre-compiling all my jsps using Ant and jspc.
>
> Let me know if more info along these lines would help you.
>
> Dave
>
>
>
>
>
> "Deadman, Hal" <[EMAIL PROTECTED]> on
05/31/2001
> 12:59:16 PM
>
> Please respond to [EMAIL PROTECTED]
>
> To: [EMAIL PROTECTED]
> cc: (bcc: David Hay/Lex/Lexmark)
> Subject: RE: Precompiling JSP Pages?
>
>
>
> If you are using Weblogic there is an Ant task that does it in the
optional
> package. I can't vouch for how well the current version works but I am
using
> a modified version that works fine. Tomcat has a batch file that will run
> Jasper on a whole directory tree full of jsps. I used it once but I never
> tried to run the compiled jsps.
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, May 31, 2001 12:18 PM
> > To: [EMAIL PROTECTED]
> > Subject: Precompiling JSP Pages?
> >
> >
> > Anyone know how to precompile the JSP pages?
> >
>
>
>
>
>
>
>