This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes Help: precompile jsp with jspc Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Help: precompile jsp with jspc" Watch "Help: precompile jsp with jspc" New topic
Author

Help: precompile jsp with jspc

Andy Zhu
Ranch Hand

Joined: May 26, 2004
Posts: 145
How can I precompile jsp with jspc? I am trying to write makefile with it. So no ant please. The question is if I just want to use jspc at command line to compile a jsp page, then how should I do it? (I always get an exception error, using jasper from tomcat 5.0.25)

Thanks


--------<br />Andy Zhu<br />scjp 1.4<br />scjd 1.4<br />SAS Certified Programmer 9.0
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Moving to the JSP Forum.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Andy Zhu
Ranch Hand

Joined: May 26, 2004
Posts: 145
I am answering my own question and hopefully someone will find this useful. My usage of jspc is for gnu make (don't be away from it if you are win32 user, install mingw you will be able to use a lot of unix programs in win32 including gnu make). So I am a fan of make utility, not ant.

the most important thing is to provide class path to java when invoking org.apache.jasper.JspC: there are several ones in the $CATALINA_HOME/common/lib; however, one must include $CATALINA_HOME/bin/commons-logging-api.jar. This package has bothered me so long to get it. But now I am on the track.
 
 
subject: Help: precompile jsp with jspc
 
Similar Threads
Maven repository
How to view servlet generated by tomcat when jsp is compiled
Precompiling jsp
JSP Precompile
How to compile jsp's from editplus