Jboss 4.2.2 ignores attributes to tag files when pages are pre-compiled
-----------------------------------------------------------------------
Key: JBAS-5299
URL:
http://jira.jboss.com/jira/browse/JBAS-5299
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Web (Tomcat) service
Affects Versions: JBossAS-4.2.2.GA
Environment: Ubuntu 7.10, java 6.03, JBoss 4.2.2.GA
Reporter: Stephen Cresswell
Assigned To: Remy Maucherat
The following will not work on JBoss 4.2.2.GA when JSPs are precompiled.
<!-- standardHead tag file-->
<%@ taglib prefix="spring"
uri="http://www.springframework.org/tags" %>
<%@ attribute name="code" required="true" %>
<head>
<title><spring:message code="site.title"/> - <spring:message
code="${code}"/></title>
</head>
<!-- JSP using standard head tag file -->
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags/" %>
<html>
<tags:standardHead code="contactUs.title" />
<body>
<div class="pod">
<h2><spring:message code="contactUs.label"/></h2>
<spring:message code="contactUs.address"/>
</div>
</body>
</html>
Even though the standardHead tag is passed a valid message key 'contactUs.title',
when precompiled this value is translated to the empty string, causing the following
error.
javax.servlet.ServletException: javax.servlet.jsp.JspTagException: No message found under
code '' for locale 'en_GB'.
The page works fine if not precompiled.
It also works fine when deployed to tomcat 5.5.26 precompiled or otherwise.
The same war that fails on JBoss 4.2.2.GA works if deployed to 4.2.1.GA
I have created a demonstration app if required.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira