wood burning stoves 2.0*
The moose likes JBoss/WildFly and the fly likes Precompile JSPs with JBOSS 4? 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 » Products » JBoss/WildFly
Bookmark "Precompile JSPs with JBOSS 4?" Watch "Precompile JSPs with JBOSS 4?" New topic
Author

Precompile JSPs with JBOSS 4?

Kimberley Jones
Greenhorn

Joined: Sep 09, 2004
Posts: 7
Does anyone have any tips or good examples on how to precompile JSPs for JBOSS? Below is the code I have, and nothing happens. What is jasper2 supposed to do, anyways? Also, is there somewhere in web.xml that I need to point to where the jsps are?

Thanks!

<target name="jspc" depends="clean" description="Compile JSPs">
<taskdef classname="org.apache.jasper.JspC" name="jasper2"
classpathref="jsp.precompile.path" >
</taskdef>

<jasper2
validateXml="false"
uriroot="${web.dir}"
webXmlfragment="${web.dir}\WEB-INF\generated_web.xml"
outputDir="${jsp.precompile.destdir}"/>

<javac srcdir="${jsp.precompile.srcdir}" destdir="${jsp.precompile.classes}"
classpathref="jsp.precompile.path" debug="off" />
</target>
[ May 12, 2005: Message edited by: Kimberley Jones ]
Kimberley Jones
Greenhorn

Joined: Sep 09, 2004
Posts: 7
I think I'm closer to my solution:

This was a good starting point:

http://cvs.sourceforge.net/viewcvs.py/jboss/website/content/build.xml.diff?r1=text&tr1=1.7&r2=text&tr2=1.8&diff_format=h

I am making a sweet ANT task, so I'll try to post it soon.
[ May 12, 2005: Message edited by: Kimberley Jones ]
Ami Desai
Greenhorn

Joined: Jun 13, 2005
Posts: 1
Hi Kimberley,

Is your sweet ANT task ready ? I'm starting same thing in JBoss+Tomcat and was wondering if I can use the one you prepared.

Thanks
-Ami
 
 
subject: Precompile JSPs with JBOSS 4?
 
Similar Threads
include directive
Problem with JspC taskdef
JSP precompilation with Jasper2
Pre Compiling jsp
tag with xdoclet