vivek3362 (1) [Avatar] Offline

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" />


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

ErikHatcher (211) [Avatar] Offline
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.