struts nested beanhtml errors

Thu, Feb 24, 2005

Well, learning Struts on the G4 and all was well. I’d got up to basic validation and database querying with DataSource but when I put it on the G5 it blew up with the error: /usr/local/tomcat/work/Catalina/ _jspx_meth_bean_message_3(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.index_jsp cannot be applied to (org.apache.struts.taglib.html.LinkTag,javax.servlet.jsp.PageContext) if (_jspx_meth_bean_message_3(_jspx_th_html_link_0, _jspx_page_context)) Nesting a bean tag inside an html tag was causing the problem on Tomcat 5.0.19 on Mac OS X: <%@ page contentType=“text/html;charset=UTF-8” language=“java” %> <%@ taglib uri=“" prefix=“html” %> <%@ taglib uri=“" prefix=“bean” %>

works: <head><title><bean:message key=“index.title” /></title></head>

breaks: <html:link forward=“auth”><bean:message key=“” /></html:link> The bean:message nested inside the html:link was causing the compilation error. I just couldn’t get it work on the G5.

In the end, I upgraded to Tomcat 5.0.28 and it fixed the problem!

comments powered by Disqus