Mantis - Resin
Viewing Issue Advanced Details
326 minor always 07-25-05 00:00 11-30-05 14:42
ferg  
 
normal  
closed 3.0.14  
3.0.14 fixed  
none    
none 3.0.15  
0000326: JSTL EL variable type conversion
RSN-370
(rep by Alex Grief)

I am trieing to port a tomcat project to resin 3.0.14 and encountered
problems with jstl functions. The probelms are present with enabled
and disabled fast-jstl.

Here is the problem:
paramm is a string
<c:when test="${fn:startsWith(paramm, 'key_')}">
throws the following exception.

It is also strange that even with disabled fast-jstl the com.caucho.el
package is used.

The same exception occures if I use other jstl functions like:
${fn:escapeXml(messages_plz)}

java.lang.IllegalArgumentException: argument type mismatch
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at com.caucho.el.FunctionExpr.evalObject(FunctionExpr.java:101)
        at com.caucho.el.Expr.evalBoolean(Expr.java:153)
        at _jsp._web_22dinf._jsp._suchensalon__jsp._jspService(WEB-INF/jsp/suchenSalon.jsp:113)
        at com.caucho.jsp.JavaPage.service(JavaPage.java:60)
        at com.caucho.jsp.Page.pageservice(Page.java:570)
        at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:159)
        at com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.java:115)
        at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:208)
        at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:268)
        at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:106)
        at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:97)
        at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
        at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:917)
        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:696)
        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:623)
        at org.springframework.web.servlet.FrameworkServlet.serviceWrapper(FrameworkServlet.java:384)
        at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:353)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:154)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:92)
        at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:99)
        at de.wimf.view.JAMonFilter.doFilter(JAMonFilter.java:52)
        at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
        at com.caucho.server.security.SecurityFilterChain.doFilter(SecurityFilterChain.java:135)
        at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:163)
        at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:208)
        at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:259)
        at com.caucho.server.port.TcpConnection.run(TcpConnection.java:363)
        at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:490)
        at com.caucho.util.ThreadPool.run(ThreadPool.java:423)
        at java.lang.Thread.run(Thread.java:534)


Notes
(0000371)
ferg   
07-25-05 00:00   
jsp/1la1