Hi, Ian.

Have you tried to use a different package (directory name) for your bundle?
The java and javax packages should be sealed by the JVM classloader to prevent abuse 
of standard classes.

Hiran

-----------------------------------------
Hiran Chaudhuri
SAG Systemhaus GmbH
Elsenheimer Straße 11
80867 München
Phone +49-89-54 74 21 34
Fax   +49-89-54 74 21 99


 

> -----Original Message-----
> From: Ian van der Neut [mailto:[EMAIL PROTECTED] 
> Sent: Montag, 18. Oktober 2004 10:38
> To: Struts mailing list
> Subject: Locale problem: can't find bundle
> 
> Hello all,
> 
> I'm getting the following error when I want to change the 
> language of my webapp. I searched the archives and google, 
> but can't really find anything that helps me. I get the 
> following error:
> 
> javax.servlet.ServletException: Can't find bundle for base 
> name application, locale en_US
> 
> I have the following line in struts-config.xml:
> 
>           <message-resources parameter="java.resources.application" />
> 
> There are in /mywebapp/WEB-INF/classes/java/resources the 
> following files:
> application.properties
> application_en.properties (exact copy of 
> application.properties) application_nl.properties
> 
> The code that generates the error is:
> 
> public ActionForward execute(ActionMapping mapping, ActionForm form,
>                       HttpServletRequest request, 
> HttpServletResponse response) throws IOException, ServletException {
>               ResourceBundle bundle = 
> ResourceBundle.getBundle("application");
> 
> Thank you for any help.
> 
> Ian.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to