https://issues.apache.org/bugzilla/show_bug.cgi?id=46915

           Summary: Unable to get ResourceBundle keys in Tomcat 6
           Product: Tomcat 6
           Version: 6.0.18
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Servlet & JSP API
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: kapilgupt...@gmail.com


Created an attachment (id=23417)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23417)
modified foreach.jsp file that reads properties file

There is issue with ResourceBundle using JSTL in tomcat 6. The problem is in
using the following code

${messageString.resourceBundle.keys}

The above code is not able to resolve the keys and result in printing of
???keys???

Here messageString is a variable set using below code
<fmt:setBundle basename="LocalStrings" scope="session" var="messageString" />

I have tested it with example jsp provided in the tomcat's example webapp.

The issue is reproducible with both JSTL1.1 and JSTL 1.2 and JDK 1.5 and 1.6

However it is working fine in Tomcat 5.5

Attached is the sample foreach.jsp with modified code to read a property file
available in \webapps\examples\WEB-INF\classes folder under tomcat installation
directory. 
Just place this file in examples webapp and view source

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to