DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=33180>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=33180 Summary: JSTL automatic type conversion gives unexpected results Product: Tomcat 5 Version: 5.0.26 Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P2 Component: Jasper AssignedTo: tomcat-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] I have a bean with a property of type char. If I do a simple test, such as the following: <c:if test="${bean.property == 'C'}"> I get this error: javax.servlet.jsp.el.ELException: An exception occured trying to convert String "C" to type "java.lang.Long" I would think it would convert the char to a String, given the testCondition, not a Long. There is a workaround -- creating a variable like this: <c:set var="name" value="${bean.property} " with the extra space and then using the fn:trim function. However, I don't believe the automatic conversion should work this way. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]