Re: dynamically compile JSPs

2005-01-12 Thread Matt Bathje
So it looks like I need to send in classpath and destination directory configuration stuff to the JspC task (using setClassPath and setOutputDir on antTask I think) Where do I get the proper information from though? (The proper information to me means the same classpath and output directory tha

Re: dynamically compile JSPs

2005-01-11 Thread Matt Bathje
I was messing around with the code a little bit, and tried this: JspC antTask = new JspC(); antTask.setArgs(new String[] { "-compile", uploadTileFilePath }); antTask.execute(); but this always gave me an error that javax.servlet package could not be found. Replying to myself here - but I got a b

Re: dynamically compile JSPs

2005-01-10 Thread Frank W. Zammetti
Hey, I remember this thread :) (Mostly because you quoted my comment!) One solution is to "shell out" to do the compilation. I think I probably gave it to you last time, but here's the two pertinent lines from my compile job that does it: java -classpath %CP% org.apache.jasper.JspC -v3 -die -d

Re: dynamically compile JSPs

2005-01-10 Thread Matt Bathje
[EMAIL PROTECTED] wrote: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jasper/docs/api/index.html Usage of the JspC class. This should be what you want. I work in Windows 95% of the time, and I'm a simplicity freak, so I tend do do things, most of the time, with batch files called from UltraEdi

Re: dynamically compile JSPs

2004-12-22 Thread fzlists
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jasper/docs/api/index.html Usage of the JspC class. This should be what you want. I work in Windows 95% of the time, and I'm a simplicity freak, so I tend do do things, most of the time, with batch files called from UltraEdit. Anyway, this is re

Re: dynamically compile JSPs

2004-12-22 Thread Matt Bathje
[EMAIL PROTECTED] wrote: If they are uploaded via a web interface, I assume it's your own interface... If so, why not just make part of the upload process a compilation? You can compile it and overwrite the working copy in Tomcat, changes should be there instantly. A bigger plus too is that yo

Re: dynamically compile JSPs

2004-12-22 Thread fzlists
on your production server when a new deployment is made. >> >> Ta >> Matt >> >> -Original Message- >> From: Matt Bathje [mailto:[EMAIL PROTECTED] >> Sent: 22 December 2004 17:01 >> To: Tomcat Users List >> Subject: Re: dynamically compi

Re: dynamically compile JSPs

2004-12-22 Thread Matt Bathje
rmance hit at all on your production server when a new deployment is made. Ta Matt -Original Message- From: Matt Bathje [mailto:[EMAIL PROTECTED] Sent: 22 December 2004 17:01 To: Tomcat Users List Subject: Re: dynamically compile JSPs I can't seem to find any solid documenta

RE: dynamically compile JSPs

2004-12-22 Thread Dale, Matt
I'd go with my first suggestion then although I'm sure there's a better way. -Original Message- From: Matt Bathje [mailto:[EMAIL PROTECTED] Sent: 22 December 2004 17:12 To: Tomcat Users List Subject: Re: dynamically compile JSPs Well they are being precompiled at first.

Re: dynamically compile JSPs

2004-12-22 Thread Matt Bathje
Matt -Original Message- From: Matt Bathje [mailto:[EMAIL PROTECTED] Sent: 22 December 2004 17:01 To: Tomcat Users List Subject: Re: dynamically compile JSPs I can't seem to find any solid documentation on this (I downloaded the JSP 2.0 spec and don't see it mentioned, even though ba

RE: dynamically compile JSPs

2004-12-22 Thread Dale, Matt
-Original Message- From: Matt Bathje [mailto:[EMAIL PROTECTED] Sent: 22 December 2004 17:01 To: Tomcat Users List Subject: Re: dynamically compile JSPs I can't seem to find any solid documentation on this (I downloaded the JSP 2.0 spec and don't see it mentioned, even though based o

Re: dynamically compile JSPs

2004-12-22 Thread Matt Bathje
I can't seem to find any solid documentation on this (I downloaded the JSP 2.0 spec and don't see it mentioned, even though based on a google search it seems like it is is a JSP thing and not a tomcat thing) But anyways - it doesn't seem to work for me, and I think the reason is that the jsp I

Re: dynamically compile JSPs

2004-12-22 Thread Tim Funk
I would think that making the query string be jsp_compile=true would do it. For example: mypage.jsp?jsp_compile=true [I never tried it] -Tim Matt Bathje wrote: Hi all - If you have your tomcat servers setup with development=false (compiling every 5 minutes) - is there a way to dynamically compile