You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Daniel H. F. e Silva" <dh...@yahoo.com> on 2003/05/28 22:11:57 UTC

Problems with Locale and MessageResources

Hi all,
 I am needing help.
 I am getting in trouble with Locale and MessageResources stuff. When my JSP having a
<html:messages> tag renders it is printing ???en_US.<my_property_name>???. I know this is
because i configured 
  <message-resources null="false" parameter="com.sbpi.jsiw.resource.ApplicationResources"/>
 Well, i have a file with name ApplicationResources.properties located at com/sbpi/jsiw/resource
folder below WEB-INF/classes. So it is at my application classpath.
 I also have a file with name ApplicationResources_en_US.properties at that same folder.
 But i'm still getting ???en_US.<my_property_name>??? stuff.
 I tried with Resin-2.1.9 and with Tomcat-4.1.24. It happens on both.

 Now tell me: what am i doing wrong?

Thanks in advance,
 Daniel.
 



__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Problems with Locale and MessageResources

Posted by James Mitchell <jm...@apache.org>.
Try deploying the struts-example.  If that fails then you have a problem.


--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org



----- Original Message -----
From: "Daniel H. F. e Silva" <dh...@yahoo.com>
To: <st...@jakarta.apache.org>
Sent: Wednesday, May 28, 2003 4:11 PM
Subject: Problems with Locale and MessageResources


> Hi all,
>  I am needing help.
>  I am getting in trouble with Locale and MessageResources stuff. When my
JSP having a
> <html:messages> tag renders it is printing ???en_US.<my_property_name>???.
I know this is
> because i configured
>   <message-resources null="false"
parameter="com.sbpi.jsiw.resource.ApplicationResources"/>
>  Well, i have a file with name ApplicationResources.properties located at
com/sbpi/jsiw/resource
> folder below WEB-INF/classes. So it is at my application classpath.
>  I also have a file with name ApplicationResources_en_US.properties at
that same folder.
>  But i'm still getting ???en_US.<my_property_name>??? stuff.
>  I tried with Resin-2.1.9 and with Tomcat-4.1.24. It happens on both.
>
>  Now tell me: what am i doing wrong?
>
> Thanks in advance,
>  Daniel.
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
> http://calendar.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org