]
Sent: Friday, October 25, 2002 2:44 PM
To: [EMAIL PROTECTED]; Russ Bonsall
Subject: Re: RE: re. i18n
To my knowledge, there are two ways to set up locale. One is to use the
container's configuration setting for
application. The other is to have an application itself session locale
attr
Vernon,
The last time I checked the Pet Store application does not use Struts. If
you look at the Struts source code you will find that the user's locale is
stored in session and is later used when reconciling which message resources
to use. Look at the processLocale() method from the RequestPr
It's probably best not to tie your Torque configuration directly to Struts,
especially since it is not necessary. Try putting the Torque.properties in
your classpath (WEB_INF/classes) then use the following to initialize:
PropertiesConfiguration conf = new PropertiesConfiguration();
java.io.Inp
Actually you can change your BaseAction to extend DispatchAction and it will
continue to work like Action. When there is no dispatch method specified it
will try calling the execute method of the Action. I am currently using
this approach and it works just fine.
Russ
-Original Message
You should try not to specify your own message resources key. Struts
already
does the work for you in detemining which resources to use. So, unless you
are
speciically specifying the key with each message call, I would change your
config file(s) to read:
I hope this helps.
-Original Mes
5 matches
Mail list logo