James has a very valid point, I had the same problem before. This
functionality is very useful in a multilingual app where you'd want
transparent page locale change with least impact on the design of your
application. Basically if you want to add ability to access certain
functionality throughout your app that is not related to a particular form
but is universal, this is the case for it.

Cheers,
Ivan
----- Original Message -----
From: "Micael" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, March 05, 2003 10:53 AM
Subject: Re: Localisation


> Don't know about other people, James, but you don't give me enough
> information.  Why you would care what page they changed locale on is a
> mystery.  But, I assume somehow that the flags are built into your layout,
> so they can change locale on any page or many pages.  Why you would wnat
to
> "specify it to forward to the page they changed locale on" in the
> struts-config.xml is also a mystery.  But, why don't you do it with a
> "changed_locale" instead of a "success" or "failure" and so on?  It would
> be relatively easy to include that functionality, where it belongs, in the
> logic passed on to the forward in the action for the form.  If you wanted
> to get fancy, you could even use a registration/notification scheme in an
> event context.  There are many, many ways to do this.  Why do you want to
> do it "hardcoded" in the struts-config.xml?  I cannot see why you would go
> that direction for a solution.  Configuration is for configuration.  This
> does not seem to be a configuration issue to me. Micael
>
> At 11:11 AM 3/5/03 -0800, you wrote:
> >I have a LocaleActionClass that sets the locale according to which wee
flag
> >the user clicks, my question is how in the struts-config.xml do i specify
it
> >to forward to the page they changed locale on (i.e their original page).
> >
> >James
> >
> >
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> LEGAL NOTICE
>
> This electronic mail  transmission and any accompanying documents contain
> information belonging to the sender which may be confidential and legally
> privileged.  This information is intended only for the use of the
> individual or entity to whom this electronic mail transmission was sent as
> indicated above. If you are not the intended recipient, any disclosure,
> copying, distribution, or action taken in reliance on the contents of the
> information contained in this transmission is strictly prohibited.  If you
> have received this transmission in error, please delete the message.
Thank
> you
>
>
>
> ---------------------------------------------------------------------
> 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