[jboss-jira] [JBoss JIRA] Resolved: (JBAS-5299) Jboss 4.2.2 ignores attributes to tag files when pages are pre-compiled

Remy Maucherat (JIRA) jira-events at lists.jboss.org
Fri Feb 5 10:17:19 EST 2010


     [ https://jira.jboss.org/jira/browse/JBAS-5299?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Remy Maucherat resolved JBAS-5299.
----------------------------------

    Fix Version/s: JBossAS-6.0.0.M2
       Resolution: Rejected


Moving to Servlet 3.0 has led to removal of precompilation, so I am closing any related JIRA.

> Jboss 4.2.2 ignores attributes to tag files when pages are pre-compiled
> -----------------------------------------------------------------------
>
>                 Key: JBAS-5299
>                 URL: https://jira.jboss.org/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
>            Assignee: Remy Maucherat
>             Fix For: JBossAS-6.0.0.M2
>
>
> 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: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list