[jboss-user] [JBoss Portal] - Re: NPE using JSTL format
PeterJ
do-not-reply at jboss.com
Thu Aug 17 22:35:51 EDT 2006
Julien,
Actually, the JSTL code calls getHeaders, not get Header. Not sure why, especially since it never looks at the results, except to see if the returned Enumeration has at least one entry. So the proper patch for fmt:message is:
public Enumeration getHeaders(String s)
| {
| return rreq.getProperties(s);
| }
I have verified that fmt:message behaves correctly with this patch applied.
Of course, you could also include the getHeader patch you proposed to made the API more consistent.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965938#3965938
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965938
More information about the jboss-user
mailing list