Yep, the same setup works in that situation - and the way Tomcat knows to use the precompiled JSPs is that special entries for each of the servlets generated from jasper (the JSP compiler) are entered into the web.xml file (this, of course, can be automated).

David Erickson wrote:

We currently have an ant function that just builds the directory structure
of a deployed webapp then points tomcat at that build directory.. is there
anyway to precompile the jsps in this situation without creating a war?  And
how does tomcat know to goto the precompiled files when a request for the
actual jsp comes in?
thanks,
David

----- Original Message ----- From: "Ruth, Brice" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, October 31, 2003 10:45 AM
Subject: Re: Eclipse + Ant + precompile -> Tomcat





Thanks for the pointer to your blog, between that and the example
provided by the Tomcat docs, I was able to get what I was looking for -
fully automated pre-compiling & deploying. Excellent!

Holman, Cal wrote:



I am using tomcat 5.0.12 and struts 1.1 with tiles and have been


successful in precompiling. The tomcat documentation has a pretty good
example. The hard part is translating someone else's directory structure
into yours to apply all the examples. I posted my solution to my web site
at http://www.calandva.com/holmansite/do/blog/blogging


I also use Eclipse for development but due to the number of steps and


substitution in the various output xml and properties files still create the
final product with ant - invoked in Eclipse or externally. Not sure I
explained it well enough and I left off my compile and war targets - let me
know if you have questions.


Cal

-----Original Message-----
From: Ruth, Brice [mailto:[EMAIL PROTECTED]
Sent: Friday, October 31, 2003 10:14
To: Struts Users Mailing List
Subject: Eclipse + Ant + precompile -> Tomcat

I've been doing some googling on having a webapp precompiled when
deployed to Tomcat via an Ant task and I'm a bit intimidated with what's
involved. Has anyone out there done this? Right now, I have an Ant build
setup as an external build in Eclipse that does a variety of things,
including building, packing up my WAR, and installing this WAR to Tomcat
using the catalina-ant "install" command that uses the management URL
and an external context file to install the webapp in a (local) running
Tomcat instance.

I'd like to follow-up the install with a directive to Tomcat to
precompile the JSPs in the web application - does anyone have an Ant
task that I could adapt to this purpose that they'd be willing to share?

Thanks!

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Learn more about Paymentech's payment processing services at


www.paymentech.com


THIS MESSAGE IS CONFIDENTIAL. This e-mail message and any attachments


are proprietary and confidential information intended only for the use of
the recipient(s) named above. If you are not the intended recipient, you
may not print, distribute, or copy this message or any attachments. If you
have received this communication in error, please notify the sender by
return e-mail and delete this message and any attachments from your
computer.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.



---------------------------------------------------------------------
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]




-- Brice D. Ruth Sr. IT Analyst Fiskars Brands, Inc.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to