my dog learned polymorphism*
The moose likes Tomcat and the fly likes Problems using JSTL in Tomcat 5.5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Problems using JSTL in Tomcat 5.5" Watch "Problems using JSTL in Tomcat 5.5" New topic
Author

Problems using JSTL in Tomcat 5.5

Javier Snaider
Greenhorn

Joined: Apr 22, 2008
Posts: 12
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

Joined: Jan 28, 2008
Posts: 5575

Hi,


Read this
Javier Snaider
Greenhorn

Joined: Apr 22, 2008
Posts: 12
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
 
 
subject: Problems using JSTL in Tomcat 5.5
 
Similar Threads
JSTL and EL
problem with jstl tags
how to run apache tomcat examples
taglib directive
isELIgnored="false"