tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Brunkhart <>
Subject JSTL bug report: fmt:bundle does not deliver correct results when using prefix attribute
Date Wed, 24 Sep 2003 00:39:14 GMT
fmt:bundle does not appear to work correctly when used with the prefix 
attribute (see test case below).  When accessing the jsp, the first access 
delivers the expected result from the resource bundle "Este es una prueba". 
 Loading the page a second time (and all future times) yields the result 

I believe this is not the correct functionality.  It works fine if instead 
of using the prefix attribute, you include the prefix in the key of the 
<fmt:message> tag.

<%@ taglib prefix="fmt" uri="" %>

<html xmlns:v="urn:schemas-microsoft-com:vml">

  <fmt:setLocale value="es" />
  <fmt:bundle basename="test" prefix="com.whatever.messages."  >
    <body style="link:#ccc;active:#ccc;visited:#aaa;hover:#fff">
      <fmt:message key="testmessage" />
com.whatever.messages.testmessage=Este es una prueba

View raw message