Looking through the startup logs of jboss (and my webapp with struts),
I noticed that only "MyResources" was found, no reference to
MyResources_de came up (although that property file is there and in the
directory). Are all of the "resources" supposed to show up?
-Ryan
2:54:51,314 INFO [EjbModule] Started
12:54:52,476 INFO [jbossweb] Registered
jboss.web:Jetty=0,JBossWebApplicationContext=2,context=/Atlantis
12:54:52,604 INFO [jbossweb] Extract
jar:file:/Users/server/atlantis/server/default/tmp/deploy/server/
default/deploy/Atlantis.ear/63.Atlantis.ear-contents/Atlantis.war!/ to
/tmp/Jetty__8080___Atlantis/webapp
12:54:57,615 INFO [jbossweb] Started
WebApplicationContext[/Atlantis,jar:file:/Users/server/atlantis/server/
default/tmp/deploy/server/default/deploy/Atlantis.ear/63.Atlantis.ear-
contents/Atlantis.war!/]
12:54:59,563 INFO [jbossweb] Controller: Loading application resources
from resource com.kodak.sis.MyResources
12:54:59,569 INFO [jbossweb] Controller: Initializing configuration
from resource path /WEB-INF/struts-config.xml
12:54:59,663 INFO [STDOUT] register('-//Apache Software
Foundation//DTD Struts Configuration 1.0//EN',
'jar:file:/private/tmp/Jetty__8080___Atlantis/webapp/WEB-INF/lib/
struts.jar!/org/apache/struts/resources/struts-config_1_0.dtd'
12:54:59,700 INFO [STDOUT] register('-//Sun Microsystems, Inc.//DTD
Web Application 2.2//EN',
'jar:file:/private/tmp/Jetty__8080___Atlantis/webapp/WEB-INF/lib/
struts.jar!/org/apache/struts/resources/web-app_2_2.dtd'
12:54:59,731 INFO [STDOUT] register('-//Sun Microsystems, Inc.//DTD
Web Application 2.3//EN',
'jar:file:/private/tmp/Jetty__8080___Atlantis/webapp/WEB-INF/lib/
struts.jar!/org/apache/struts/resources/web-app_2_3.dtd'
12:54:59,756 INFO [STDOUT] resolveEntity('-//Apache Software
Foundation//DTD Struts Configuration 1.0//EN',
'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd')
12:54:59,757 INFO [STDOUT] Resolving to alternate DTD
'jar:file:/private/tmp/Jetty__8080___Atlantis/webapp/WEB-INF/lib/
struts.jar!/org/apache/struts/resources/struts-config_1_0.dtd'
12:54:59,777 INFO [STDOUT] New org.apache.struts.action.ActionFormBean
12:54:59,782 INFO [STDOUT] Set org.apache.struts.action.ActionFormBean
properties
12:54:59,842 INFO [STDOUT] Call
org.apache.struts.action.ActionServlet.addFormBean(ActionFormBean[logonF
orm])
12:54:59,843 INFO [STDOUT] Pop org.apache.struts.action.ActionFormBean
On Friday, September 27, 2002, at 11:07 AM, Ryan Cuprak wrote:
> Okay, tried that but it still didn't work. Do I have to add an entry
> into the web.xml for every language? I also added <bean:message
> key="login.username" locale="deu"/> but that didn't find it either.
>
> -Ryan
> On Friday, September 27, 2002, at 10:49 AM, James Mitchell wrote:
>
>> Oops
>>
>> meant to say this:
>>
>> Change the properties file name to webapp_deu.properties
>> ^^^
>>
>>
>>
>> James Mitchell
>> Software Engineer\Struts Evangelist
>> Struts-Atlanta, the "Open Minded Developer Network"
>> http://www.open-tools.org/struts-atlanta
>>
>>
>>
>>
>>> -----Original Message-----
>>> From: James Mitchell [mailto:[EMAIL PROTECTED]]
>>> Sent: Friday, September 27, 2002 10:47 AM
>>> To: Struts Users Mailing List
>>> Subject: RE: Internationalization
>>>
>>>
>>> Not sure why your browser is sending "deu" in Accept-Language, but
>>> you can
>>> try this:
>>>
>>> Change the properties file name to webapp_de.properties
>>>
>>> Here's some further information:
>>> http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
>>> http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.10
>>>
>>>
>>>
>>> James Mitchell
>>> Software Engineer\Struts Evangelist
>>> Struts-Atlanta, the "Open Minded Developer Network"
>>> http://www.open-tools.org/struts-atlanta
>>>
>>>
>>>
>>>
>>>> -----Original Message-----
>>>> From: Ryan Cuprak [mailto:[EMAIL PROTECTED]]
>>>> Sent: Friday, September 27, 2002 10:25 AM
>>>> To: Struts Users Mailing List
>>>> Subject: Re: Internationalization
>>>>
>>>>
>>>>
>>>> I haven't tried the Action.LOCALE_KEY yet, but restarting the
>>>> server
>>>> and browser as well as dumping the cookies hasn't fixed it.
>>>>
>>>> Thanks,
>>>> -Ryans
>>>>
>>>> On Friday, September 27, 2002, at 10:12 AM, David Graham wrote:
>>>>
>>>>> I had a problem like this and solved it by restarting the server
>>>>> and
>>>>> browser. Struts only checks your browser locale when you first hit
>>>>> the page and then stores it in your session. To speed debugging
>>>>> you
>>>>> could manually set the locale code under the Action.LOCALE_KEY (i
>>>>> think) session attribute.
>>>>>
>>>>> Dave
>>>>>
>>>>>
>>>>>> From: Ryan Cuprak <[EMAIL PROTECTED]>
>>>>>> Reply-To: "Struts Users Mailing List"
>>> <[EMAIL PROTECTED]>
>>>>>> To: Struts Mailing <[EMAIL PROTECTED]>
>>>>>> Subject: Internationalization
>>>>>> Date: Fri, 27 Sep 2002 10:02:02 -0400
>>>>>>
>>>>>>
>>>>>> Hello,
>>>>>> To test internationalization on my struts application I tossed a
>>>>>> properties file "webapp_de.properties" into the same directory as
>>>>>> my
>>>>>> "webapp.properties". I know that struts is finding
>>>>>> "webapp.properties" (English/US) as bean:message correctly
>>>>>> retrieves
>>>>>> the proper labels. If I change the preferred language on MacOS
>>>>>> 10.2
>>>>>> to German and relaunch the browser (Internet Explorer- German set
>>>>>> as
>>>>>> primary in preferences as well) and visit my struts application,
>>>>>> the
>>>>>> webapp.properties and not webapp_de.properties is used. For
>>>>>> debugging
>>>>>> I put some code into the jsp page that would retrieve the
>>>>>> country/language from the request. The country comes back an empty
>>>>>> string with the language being "deu". Anyone have any advice as to
>>>>>> why my German properties file isn't being found/used? Do I need to
>>>>>> add anything to web.xml to reference the German file? Note, when
>>>>>> the
>>>>>> 10.2 is in German mode, Google does return a German web page. In
>>>>>> my
>>>>>> jsp page I am following the directions from the struts user guide
>>>>>> so
>>>>>> the encoding should be set correctly.
>>>>>>
>>>>>> Thanks,
>>>>>> Ryan Cuprak
>>>>>>
>>>>>> BTW: I don't speak German, I am using that sherlock translator in
>>>>>> 10.2 - a neat example of a useful webservices!
>>>>>>
>>>>>>
>>>>>> --
>>>>>> To unsubscribe, e-mail:
>>>>>> <mailto:[EMAIL PROTECTED]>
>>>>>> For additional commands, e-mail:
>>>>>> <mailto:[EMAIL PROTECTED]>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> _________________________________________________________________
>>>>> Send and receive Hotmail on your mobile device:
>>>>> http://mobile.msn.com
>>>>>
>>>>>
>>>>> --
>>>>> To unsubscribe, e-mail:
>>>>> <mailto:[EMAIL PROTECTED]>
>>>>> For additional commands, e-mail:
>>>>> <mailto:[EMAIL PROTECTED]>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> To unsubscribe, e-mail:
>>> <mailto:[EMAIL PROTECTED]>
>>> For additional commands, e-mail:
>>> <mailto:[EMAIL PROTECTED]>
>>>
>>>
>>>
>>> --
>>> To unsubscribe, e-mail:
>> <mailto:[EMAIL PROTECTED]>
>> For additional commands, e-mail:
>> <mailto:[EMAIL PROTECTED]>
>>
>>
>>
>> --
>> To unsubscribe, e-mail:
>> <mailto:[EMAIL PROTECTED]>
>> For additional commands, e-mail:
>> <mailto:[EMAIL PROTECTED]>
>>
>>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>