| How to compile jsp files with ANT | How to compile jsp files with ANT 2007-02-21 - By James Abley
Why do you want to do this; e.g. is it part of a check to make sure that all JSP pages will compile? Typically, you'd get better results by using httpunit or a spider of sort sort to access every page and check that it doesn't come back with a 500 response. That way, you are using the deployment target container mechanism to compile the JSPs.
James
Rashmi Rubdi wrote: > Hi Lokesh, > > I'm assuming you want to pre-compile JSPs. You can use Jasper for that. > > Take a look at the Jasper ANT task here: > http://tomcat.apache.org/tomcat-5.5-doc/jasper-howto.html > > The pre-compilation process first converts all JSP files to .java files and then compiles them into class files, it will also modify web.xml > to create a servlet mapping of every JSP class file. > > for example: > > <servlet> > <servlet-name>org.apache.jsp.web._005fterms.copyright_jsp</servlet -name> > <servlet-class>org.apache.jsp.web._005fterms.copyright_jsp</servlet -class> > </servlet> > > <servlet-mapping> > <servlet-name>org.apache.jsp.web._005fterms.copyright_jsp</servlet -name> > <url-pattern>/web/_terms/copyright.jsp</url-pattern> > </servlet-mapping> > > I guess that's what you are looking for. > > -Rashmi > > ----- Original Message ---- > From: Lokesh Jayaraman <lokesh.jayaram@(protected)> > To: user@(protected) > Sent: Tuesday, February 20, 2007 4:41:55 AM > Subject: How to compile jsp files with ANT > > > Dear, > > How to compile JSP files using ANT and Websphere Application Server 6.0 > and also use websphere's java compiler and libraries > Kindly help me to solve this pbm > by > Lokesh > > > > _____________________________________________________________________________ _______ > Sucker-punch spam with award-winning protection. > Try the free Yahoo! Mail Beta. > http://advision.webevents.yahoo.com/mailbeta/features_spam.html > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@(protected) > For additional commands, e-mail: user-help@(protected) >
--------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@(protected) For additional commands, e-mail: user-help@(protected)
|
|
 |