As part of my compilation script I usually precompile all my webapp JSPs, to catch all compilation errors. My ant script is something like:
<target name="compileJsp">
<mkdir dir="${jsp.gendir}"/>
<jspc destdir="${jsp.gendir}" verbose="9" srcdir="web">
<webapp basedir="web"/>
<classpath refid="project.classpath" />
</jspc>
<javac srcdir="${jsp.gendir}" destdir="${jsp.gendir}" debug="on">
<classpath refid="project.classpath" />
</javac>
</target>This works fine, but compilation errors show line numbers in the generated servlets, not in the JSPs (it's logic, as I am compiling the generated servlets). I have seen that Tomcat is able to tell me which JSP line is incorrect in error pages, so I guess there is a smarter way to do this precompilation. Is there any way through ant tasks, or through direct java invocation to get it?
Thanks in advance, Rodrigo Ruiz
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
