You can do things like
jspc.sh -d /usr/local/apache/tomcat/webapps/myapp/WEB-INF/classes
/usr/local/apache/tomcat/webapps/myapp/login.jsp
or
./bin.JspC.sh ./webapps/examples/jsp/snp/snoop.jsp
Check the doc:
http://jakarta.apache.org/tomcat-4.0/jakarta-tomcat-4.0/jasper/doc/jspc.html
first.
HOWEVER...
1) When you run it, you should be the same user as the one which runs tomcat
DO NOT BE A ROOT UNLESS YOUR TOMCAT RUNS AS ROOT!!!
2) You need to have exactly the same environment set as tomcat
(All these JAVA_HOMEs TOMCAT_HOMEs, CLASSPATHs, etc...)
You actually may be better off by making a special script which wraps
around the jspc.sh and does those things for your. Better still,
you could have a C-wrapper around this script which will be SUID
TOMCAT_USER which will run it with a right UID.
Of course, I assume you are on UNIX. If you are on Windows, suffer, even
if this is your management choice (the bright site is that Bill makes
a lot more people employed than it is needed -- look at all those
sys-adms staying in long lines to inner city shelters and soup kitchens
when Linux takes over {:-(})
In fact... it is so easy to mess up that I often prefer to use some
command-line URL retriever, e.g., wget is great.... lynx is another one.
and just access the page. For example:
wget http://localhost:8080/examples/jsp/dates/date.jsp
Run wget in some separate directory, since it saves the pages retrieved.
This way you will not clutter a directory like your HOME and you can
easily see what has compiled by doing ls and/or grep on the files for "Error".
Jan
Jan K. Labanowski | phone: 614-292-9279, FAX: 614-292-7168
Ohio Supercomputer Center | Internet: [EMAIL PROTECTED]
1224 Kinnear Rd, | http://www.ccl.net/chemistry.html
Columbus, OH 43212-1163 | http://www.osc.edu/
On Mon, 26 Feb 2001, Amir Nuri wrote:
> Hi
> Does anyone knows:
> How can I compile a JSP page on a batch file ???
>
> ====================================
> E-mail : [EMAIL PROTECTED]
> Web : http://www.mobilitec.com/
> ====================================
> Mobilitec, Inc.
> P.O. Box 15049 Matam
> Haifa 31905, Israel
> Tel +972-4-855-1133 ext. 115
> Mobile +972-51-848-557
> Fax +972-4-855-1112
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]