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 <[EMAIL PROTECTED]>
To: user@ant.apache.org
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

Reply via email to