Precompiling JSP How To

2004-07-16 Thread Hofmann, Benjamin
How do I set up my Tomcat 5 to precompile all of my JSP files? Thanks, Ben

Re: Precompiling JSP How To

2004-07-16 Thread QM
On Fri, Jul 16, 2004 at 11:30:01AM -0500, Hofmann, Benjamin wrote: : How do I set up my Tomcat 5 to precompile all of my JSP files? If you use Ant to build your app, you can follow the instructions in the Tomcat docs. -QM -- software -- http://www.brandxdev.net tech news --

RE: Precompiling JSP How To

2004-07-16 Thread Dale, Matt
You can't. You need use Ant to do this. Ta Matt -Original Message- From: Hofmann, Benjamin [mailto:[EMAIL PROTECTED] Sent: 16 July 2004 17:30 To: [EMAIL PROTECTED] Subject: Precompiling JSP How To How do I set up my Tomcat 5 to precompile all of my JSP files? Thanks, Ben Any

RE: Precompiling JSP How To

2004-07-16 Thread Hofmann, Benjamin
I guess I could use Ant if there is no other way but I currently use Oracle's JDeveloper because a couple of my sites use Oracle's 9iAS. -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Friday, July 16, 2004 11:34 AM To: Tomcat Users List Subject: Re: Precompiling JSP How

RE: Precompiling JSP How To

2004-07-16 Thread Hofmann, Benjamin
OK. Thanks. -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Friday, July 16, 2004 11:34 AM To: Tomcat Users List Subject: RE: Precompiling JSP How To You can't. You need use Ant to do this. Ta Matt -Original Message- From: Hofmann, Benjamin [mailto:[EMAIL

Re: Precompiling JSP How To

2004-07-16 Thread Tim Funk
Use this in your build.xml ... target name=jsp-compile depends=compile description=prcompile the jsps !-- declare JspC task -- taskdef classname=org.apache.jasper.JspC name=jasper2 classpath refid=classpath/ /taskdef !-- declare and make scratch dirs for the java files and

RE: Precompiling JSP How To

2004-07-16 Thread Hofmann, Benjamin
Thanks! -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Friday, July 16, 2004 11:37 AM To: Tomcat Users List Subject: Re: Precompiling JSP How To Use this in your build.xml ... target name=jsp-compile depends=compile description=prcompile the jsps !-- declare

Re: Precompiling JSP How To

2004-07-16 Thread Evgeny Gesin
Hi, when I run that code I get this error No public no-arg constructor in class org.apache.jasper.JspC, probably in taskdef What could be wrong? Evgeny --- Tim Funk [EMAIL PROTECTED] wrote: Use this in your build.xml ... target name=jsp-compile depends=compile description=prcompile the

Re: Precompiling JSP How To

2004-07-16 Thread Tim Funk
You need common/lib/jasper-compiler.jar in your classpath. [And probably a couple of other files in common/lib] -Tim Evgeny Gesin wrote: Hi, when I run that code I get this error No public no-arg constructor in class org.apache.jasper.JspC, probably in taskdef What could be wrong? Evgeny ---

Re: Precompiling JSP How To

2004-07-16 Thread Andre Legendre
Hi I tried to use this build.xml. It help me alot but I still have some difficulties. My build.xml is use to compile many other elements. Because of that build.xml is not located in the directory where are the jsp. How can I declare the directory where are located the jsp files to translate ?

RE: Precompiling JSP How To

2004-07-16 Thread Yansheng Lin
You can try to open up all the jsp pages one-by-one. That way all the pages get complied:). Job security. -Y -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: July 16, 2004 10:34 To: Tomcat Users List Subject: RE: Precompiling JSP How To You can't. You need use

Re: Precompiling JSP How To

2004-07-16 Thread Tim Funk
In the jasper2 task, the uriroot=${build.dir} is where the root of the web app is located. So you build.xml can be one place, the webapp root can be at another pllace, and the outputfiles from jspc (and compiled classes) can each be their own subdirectories. -Tim Andre Legendre wrote: Hi I

Re: Precompiling JSP How To

2004-07-16 Thread Andre Legendre
Hi Tim Thank you for your answer. It is Ok now. Have nice time Andre Tim Funk wrote: In the jasper2 task, the uriroot=${build.dir} is where the root of the web app is located. So you build.xml can be one place, the webapp root can be at another pllace, and the outputfiles from jspc (and