You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Alistair Young <al...@smo.uhi.ac.uk> on 2005/02/21 12:59:31 UTC

bean:message inside html:link

I tried to search the list archives on the site but it says there's no  
text search available. Hopefully I'm not repeating something here.

On one machine, the following works fine but on another on Tomcat  
5.0.19 the bean:message inside the html:link doesn't work. It gives the  
error:

org.apache.jasper.JasperException: Unable to compile class for JSP

/usr/local/tomcat/work/Catalina/test.ac.uk/struts/org/apache/jsp/ 
index_jsp.java:154:  
_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))

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>

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

breaks:
<html:link forward="auth"><bean:message key="index.link.auth"  
/></html:link>

struts-html.tld and struts-bean.tld are not in WEB-INF as per the  
servlet 2.3 notes. Everything in the webapp is identical between the  
machines.

thanks

Alistair


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org