-----Original Message-----
From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: Tuesday, June 10, 2014 12:54 AM
To: Tomcat Users List
Subject: Re: How to add jstl.jar to the jasper task

* PGP Signed by an unknown key

Jeff,

On 6/9/14, 1:39 AM, Jeff Cai wrote:
> Snip ...
> 
> 
> Try setting "classPath" attribute on <jasper> element.
> 
> http://svn.apache.org/viewvc/tomcat/tc7.0.x/tags/TOMCAT_7_0_54/java/or
> g/apache/jasper/JspC.java?view=markup#l766
>
>  Best regards, Konstantin Kolinko
> 
> 
> Konstantin, Thanks for your information.
> 
> Now I can include the jar file through specifying the CLASSPATH 
> attribute in the build file. But another new issue comes out:
> 
> When building the following code, it reports error.
> 
> <h3>Iterating over a range</h3> <c:set var="num" value="20" /> 
> <c:forEach var="item" begin="1" end="${num}"> ${item} </c:forEach>
> 
> BUILD FAILED /home/jeffcai/ant_test/build.xml:13:
> org.apache.jasper.JasperException: java.lang.NumberFormatException:
> For input string: "${num}"
> 
> This error happens on Tomcat 7.0.54 while not on 8.0.8.

What does your taglib declaration look like?

-chris

Chris,

I added web.xml under WEB-INF, then the error went away.

Thanks.

Jeff

* Unknown Key
* 0xA53CA458(L)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to