You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2001/10/26 17:05:56 UTC

DO NOT REPLY [Bug 4451] New: - Using ResourceBundle into a JSP doesn't work if .properties files is put into a subdirectory

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4451>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4451

Using ResourceBundle into a JSP doesn't work if .properties files is put into a subdirectory

           Summary: Using ResourceBundle into a JSP doesn't work if
                    .properties files is put into a subdirectory
           Product: Tomcat 3
           Version: 3.2.3 Final
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Jasper
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: pietro.licata@sistinf.it


I am using a java.util.ResourceBundle into my JSP: java.util.ResourceBundle rb 
= java.util.ResourceBundle.getBundle("client");
If I put the client.properties file into the same directory as the JSP, 
everyting works fine. If I put the client.properties into a subdirectory (e.g. 
props/client.properties) and I change the constructor accordingly: 
java.util.ResourceBundle rb = java.util.ResourceBundle.getBundle
("props.client"); I get the following error: javax.servlet.ServletException: 
Can't find bundle for base name props.client, locale it_IT.
The same directory structure works well with WebSphere v3.02.