[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Problem in compiling JSP on jBoss 5.0.0.GA
rogerio.baldini
do-not-reply at jboss.com
Wed Dec 10 14:23:43 EST 2008
Hi Guys,
I am receiving this message when trying to compile a JSP on jBoss 5.0.0.GA:
| An error occurred at line: 77 in the jsp file: /plc/layouts/sistema/PlcMenuItemLayout.jsp
| The operator + is undefined for the argument type(s) java.lang.Object, java.lang.Object
| 74: <c:when test="${fn:startsWith(item.link,'/') or fn:startsWith(item.link,'http') or fn:startsWith(item.link,'.')}">
| 75: <c:set var="linkAjustado" value="${item.link}"/>
| 76: <c:if test="${not fn:startsWith(item.link,'http') and not fn:startsWith(item.link,'.')}">
| 77: <c:set var="linkAjustado" value="${pageContext.request.contextPath}${item.link}"/>
| 78: </c:if>
| 79: <c:choose>
| 80: <%-- é item de menu com link e mensagem do jCompany --%>
|
I have checked source code generated by jBoss 5 and there is some thing strange:
| _jspx_th_c_005fset_005f6.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${pageContext.request.contextPath}", java.lang.Object.class, (PageContext)_jspx_page_context, null, false) + (java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.link}", java.lang.Object.class, (PageContext)_jspx_page_context, null, false));
|
The error refers to this "+" operator between two objects...
I have also checked source code generated by jBoss 4.2 and it is fine
| _jspx_th_c_005fset_005f6.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${pageContext.request.contextPath}${item.link}", java.lang.Object.class, (PageContext)_jspx_page_context, null, false));
|
Is it a bug on jBoss 5 or could be configured ???
Thanks a lot
Rogerio.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4195722#4195722
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4195722
More information about the jboss-user
mailing list