vivek3362 (1) [Avatar] Offline
#1
Hi

I have your book. Referring page 289, I was able to convert jsp files using the <jspc> task to java files.

But the build fails for jsp files using tags
eg <%@ taglib uri="/WEB-INF/tags/test-taglib.tld" prefix="testtag" %>
I have my pathelement pointing to the ant.jar,jasper*.jar,servlet.jar files.

<jspc srcdir="${devhome}" >
destdir="${jspdest}" >
<include name="**/*.jsp"/>
<classpath refid="compile.classpath" />


</jspc>

I am etting the following error:
Java returned: 9 for any jsp using tags.
Any ideas how to resolve this issue?

Thanks
Vivek
ErikHatcher (211) [Avatar] Offline
#2
Re: Compile jsp which references tags
Steve can correct me if I'm wrong, but Ant's <jspc> task is deprecated and you should look at the one that comes with Tomcat and refer to its documentation.