This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problems using JSTL in Tomcat 5.5

 
Javier Snaider
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a JSP using JSTL. It works fine in Tomcat 6. But when I try to use it in Tomcat 5.5 ${status == 'R'} fails. status is type Character and the error says that

javax.servlet.ServletException: An exception occured trying to convert String "R" to type "java.lang.Long"

Is this a bug?

Thanks,

Javier
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,


Read this
 
Javier Snaider
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Seetharaman,

Thanks for your answer. I checked the versions of JSP, servlet and JSTL and everything is OK (Servlet 2.4 and JSTL 1.1 using Tomcat 5.5).
The rest of the code that uses EL and JSTL works fine. Just fails when I compare Character attribute with a char constant 'R'.

Thanks,

Javier
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic