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?
RE: Precompiling JSP Pages?
Ditto for WebSphere. Chris -Original Message- From: Deadman, Hal [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 31, 2001 12:59 PM To: [EMAIL PROTECTED] 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?
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?
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?
Re: Precompiling JSP Pages?
This is the rule that I have used in the build.xml file for pre-compiling JSPs using WebLogic 6.0 jspc via an Ant build. Obviously the properties (e.g. CLASSPATH) and paths need to be set up properly for this to work. target name=jsp java classpath=${CLASSPATH};${SRC_DIR}\docroot;${PROJECT_HOME}\stage classname=weblogic.jspc fork=yes arg value=-webapp/ arg value=source/docroot/ arg value=-d/ arg value=stage/WEB-INF/classes/ arg value=-depend/ arg value=-keepgenerated/ arg value=source/docroot/*.jsp/ /java /target Marc _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
RE: Precompiling JSP Pages?
for WebLogic 6.0 you can do: When we start our application for the first time it takes some time for the web pages to come up. It is because the WebLogic will compile dynamic JSP pages at the first access. We can configure WebLogic to pre-compile all JSP pages. In order to do that we have to add four lines in web.xml: web-app context-param param-nameweblogic.jsp.precompile/param-name param-valuetrue/param-value /context-param /web-app This is a good test for all our JSPs, because server will display an exception right away. Paul Zabelin Software Development Consultant Classwave Wireless Inc. 5160 Yonge Street, 12th Floor Toronto, ON, Canada M2N 6L9 Tel: 416.730.8181 ext. 2029 Fax: 416.730.8448 www.classwave.com http://www.classwave.com
Re: Precompiling JSP Pages?
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?