Hi,
I'm having trouble with Resource Bundles in JSP pages.
I have a properties file (blah.properties) that is loaded in as
a resource bundle. The snippet of code works fine in a servlet,
but I get the follwing error for the JSP page.
/The Error message ***************************/
500 Internal Server Error
The servlet named "pageCompile", at the requested URL

http://127.0.0.1:8080/sher/test.jsp
reported this exception:
can't find resource for blah_en_US
The administrator of this web server should resolve this problem.
/***************************/

In fact here's the
wierd thing: If I restart JWS and access the corresponding page-compiled servlet
for the JSP page it works fine. If I then access the JSP page I still get
the error. However, if I access the JSP page first and then the corresponding
page-compiled servlet I get the error on both attempts
This time I get the following error for the servlet
/The Error message ***************************/
500 Internal Server Error
The servlet named "can't find resource for blah_en_US", at the requested URL

http://127.0.0.1/servlet/pagecompile._sher._test_xjsp
reported this exception:
can't find resource for blah_en_US
The administrator of this web server should resolve this problem.
/***************************/
Note the the following line above
>The servlet named "can't find resource for blah_en_US", at the requested URL


I put the following
statements into my jsp page to make sure my CLASSPATH settings
were correct (i.e. it included the filename.properties file) - which
they were. So I can't understand why it can't find the properties file.
I've tried putting the properties file in several places (including the
classes directory) but I'm having no luck.
        String classpath = System.getProperty("java.class.path");
        System.out.println("CLASSPATH = " + classpath + "\n");



Please help.
Thanks,
-Sher

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to