Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Precompile JSPs with JBOSS 4?

 
Kimberley Jones
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic