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 you can catch any compile-time errors at that point and report back to the user with the trace, so you would never have any bad JSP's in production.
-- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Wed, December 22, 2004 12:11 pm, Matt Bathje said: > Well they are being precompiled at first. The problem is that some of > the pages are being uploaded/overwritten through a web interface, and > the changes aren't immediately visible to users. (They have to wait for > the scheduled recompile to happen to see the changes they made.) > > > Matt > > Dale, Matt wrote: >> This might be a long way round but you could call a system ant job to >> compile them. Or if it is appropriate in your environment you should >> just precompile them anyway, this way there will be no performance 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 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 want to compile dynamically is a struts/tiles layout >> page. There is no way to access the file directly through the browser. >> >> I may be able to get away with putting jsp_compile=true in the tile >> definition path, but I'd like to avoid that because (if my understanding >> of this parameter is true) the page will get recompiled on every page >> load, which is really not what I want, and would probably hurt >> performance a lot. >> >> Any other ideas for dynamic JSP compilation? Calling the compiler from >> inside the code (a struts action) if possible is not out of the question >> as long as there is no serious downside. >> >> >> Thanks, >> Matt >> >> >> >> >> Tim Funk wrote: >> >>>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 >>>>certain JSP pages from inside your servlet code? (Or at least to >>>>trigger a compile to happen off of the schedule?) >>>> >>>>If so - are there any side effects of doing this? >>>> >>>> >>>> >>> >>> >>>--------------------------------------------------------------------- >>>To unsubscribe, e-mail: [EMAIL PROTECTED] >>>For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> ------------------------------------------------------------------------ >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
