You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by EmiliyD <sa...@gmx.de> on 2009/08/05 17:40:03 UTC
Struts2 I18N Validation
Hi,
I am trying to develop a localized validation for my struts2 project.
Dynamically the locale-specific validation.xml should be used.
My project holds different validationfiles for each country:
actionClass1_ie.validation
actionClass1_de.validation
....
is there a way to make struts load the validation-file locale-dependent?
I wonder why there does not seem to be a tutorial in the web that refers to
this problem. I am sure many large web-applications need such
configurations.
Probably there does exist a solution by the use of the webwork validation
interceptor, but I can not figure it out
Thank you for your help
--
View this message in context: http://www.nabble.com/Struts2-I18N-Validation-tp24831048p24831048.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Struts2 I18N Validation
Posted by EmiliyD <sa...@gmx.de>.
In my webProject, its not possible to set the locale by the browser. This is
special, I know.
If anybody finds a solution to my validationproblem, please tell me.
EmiliyD wrote:
>
> Hi,
> I am trying to develop a localized validation for my struts2 project.
> Dynamically the locale-specific validation.xml should be used.
> My project holds different validationfiles for each country:
> actionClass1_ie.validation
> actionClass1_de.validation
> ....
> is there a way to make struts load the validation-file locale-dependent?
> I wonder why there does not seem to be a tutorial in the web that refers
> to this problem. I am sure many large web-applications need such
> configurations.
> Probably there does exist a solution by the use of the webwork validation
> interceptor, but I can not figure it out
> Thank you for your help
>
--
View this message in context: http://www.nabble.com/Struts2-I18N-Validation-tp24831048p24831789.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Struts2 I18N Validation
Posted by Greg Lindholm <gr...@gmail.com>.
Out of curiosity, what validations are different based on the users country
setting?
Of course the user can change the country/language/locale setting in there
browser so you can not rely on it being accurate.
On Wed, Aug 5, 2009 at 11:40 AM, EmiliyD <sa...@gmx.de> wrote:
>
> Hi,
> I am trying to develop a localized validation for my struts2 project.
> Dynamically the locale-specific validation.xml should be used.
> My project holds different validationfiles for each country:
> actionClass1_ie.validation
> actionClass1_de.validation
> ....
> is there a way to make struts load the validation-file locale-dependent?
> I wonder why there does not seem to be a tutorial in the web that refers to
> this problem. I am sure many large web-applications need such
> configurations.
> Probably there does exist a solution by the use of the webwork validation
> interceptor, but I can not figure it out
> Thank you for your help
> --
> View this message in context:
> http://www.nabble.com/Struts2-I18N-Validation-tp24831048p24831048.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>