RE: RE: re. i18n

2002-10-28 Thread Russ Bonsall
] 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

RE: re. i18n

2002-10-22 Thread Russ Bonsall
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

RE: Torque initialization/configuration in a Struts Application

2002-09-24 Thread Russ Bonsall
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

RE: Extending Action and DispatchAction

2002-09-23 Thread Russ Bonsall
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

RE: HELP needed with Multiple Resource Files (for sub-applications)

2002-09-09 Thread Russ Bonsall
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