S
Steve R. Burrus
I find myself in need right now of some help/assistance with using the
ResourceBundle class! You see, I am working on this particular servlet
called "WelcomeServlet.java". It is a relatively simple servlet which is
supposed to display a welcoming message in various languages. I chose to
work with the Spanish language for now. (es_ES) The resourceBundle is called
"WelcomeBundle_es_ES.java".
I am afraid that when I try to execute this servlet in my web browser all
that I seem to get is that server error message down below. Can someone
please help me with this?
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it
from fulfilling this request.
exception
java.util.MissingResourceException: Can't find bundle for base name
i18n.WelcomeBundle_es_ES.properties, locale en_US
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:837)
java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:806)
java.util.ResourceBundle.getBundle(ResourceBundle.java:577)
WelcomeServlet.doGet(WelcomeServlet.java:18)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache
Tomcat/5.5.7 logs.
ResourceBundle class! You see, I am working on this particular servlet
called "WelcomeServlet.java". It is a relatively simple servlet which is
supposed to display a welcoming message in various languages. I chose to
work with the Spanish language for now. (es_ES) The resourceBundle is called
"WelcomeBundle_es_ES.java".
I am afraid that when I try to execute this servlet in my web browser all
that I seem to get is that server error message down below. Can someone
please help me with this?
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it
from fulfilling this request.
exception
java.util.MissingResourceException: Can't find bundle for base name
i18n.WelcomeBundle_es_ES.properties, locale en_US
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:837)
java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:806)
java.util.ResourceBundle.getBundle(ResourceBundle.java:577)
WelcomeServlet.doGet(WelcomeServlet.java:18)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache
Tomcat/5.5.7 logs.