jsp precompilation using tomcat 6 and ant

H

harryos

hi
i created a web app having an index.jsp that takes in a string and on
buttonclick prints it using a response.jsp.I did precompilation by
calling http://localhost:8080/myapp/index.jsp?jsp_precompile=true.
This creates an index_jsp.java and index_jsp.class in org.apache.jsp
package within work/Catalina/localhost/myapp folder. I am familiar
with this way of precompilation.

I wanted to do this precompilation using ant script.So i went to the
jasper-howto page of tomcat.It has
<target name="jspc">
<jasper
validateXml="true"
uriroot="${webapp.path}"
webXmlFragment="${webapp.path}/WEB-INF/
generated_web.xml"
outputDir="${webapp.path}/WEB-INF/src" />
</target>

Can someone tell me what value i should give for 'webapp.path'? Is it
build/myapp?
Do i have to create generated_web.xml? Or how do you use it?

Putting in other words, what should be the contents of my build
folder ? and what should be the structure of my myapp.war file?

I am quite lost in this area..going thru the doc didn't help..If
someone can shed some light ,I would be grateful.

thanks
harry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,731
Messages
2,569,432
Members
44,832
Latest member
GlennSmall

Latest Threads

Top