Hi,
No need for any "compiler" here. Just write a simple Java codepiece (I had the whole 
code for this somewhere, but not anymore :-( ) that:
1. gets a list .jsp files (eg. from a text file you can create with a find command on 
Unix, starting from your <DocumentRoot>)
2. request the pages from the web server (URLConnection?) --
3. of course you don't need to do anything with response from the server unless it's 
4xx or 5xx, meaning either you have your pages' list assembled incorrectly (404), you 
don't have rights to get the page (403) or simply you have Java errors on a page 
(50x); you can log errors though somewhere -- even on stdout.

Using this small Java app we used to compile around 230 JSPs in 10 minutes -- not 
blazing fast, but there was some space for improvement.

PS To get a list of JSPs (on Unix command prompt):

$ find . -name "*.jsp" -print > jsplist.txt

if you execute this in <DocumentRoot>/<YourJSPDirWhateverItIs> you'll get, well... 
list of JSPs.
On Window$ "dir /b /s *.jsp" works almost the same way, but gives absolute path (eg.
"C:\IBM_HTTP_Server\htdocs\index.jsp" instead of "./index.jsp")

Sorry for this long post.

Best regards and Happy Canada Day,
Piotr,
Toronto, ON

-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Matthias Piepenschneider
Sent: Friday, June 30, 2000 10:02
To: [EMAIL PROTECTED]
Subject: [JSP-INTEREST] Precomiling JSP with Tomcat?!?!?


Hi *,

is there anybody who can tell me how to precompile JSP-Sites using
Tomcat?

--
Mit freundlichen Gruessen


Matthias Piepenschneider

Get a free Palm V here!
http://www.pdafn.com/register.shtml?referrer_id=47908

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to