Yes, you just use the "bundle" attribute on either the <html:errors> or the
<html:messages> element:

   <html:errors bundle="customer.abc" />
   <html:errors bundle="customer.xyz" />

or

   <html:messages bundle="customer.abc">
       ...
   </html:messages>
   <html:messages bundle="customer.xyz" >
       ...
   </html:messages>

Niall

----- Original Message ----- 
From: "Ramesh Mohan Reddy" <[EMAIL PROTECTED]>
To: <user@struts.apache.org>
Sent: Wednesday, October 05, 2005 12:39 PM
Subject: How to provide different Validator Resources


> Hi,
>
> How can I set different validator resources in struts
> action before calling validate(...) method ?
>
> I have got one jsp and one <form/> declaration in
> validation.xml that are common for 2 types of
> customers, "abc" and "xyz".
>
> I have got message resource elements like below:-
>
> <message-resources
> parameter="resources.customer.default"/>
> <message-resources key="customer.abc"
> parameter="resources.customer.abc"/>
> <message-resources key="customer.xyz"
> parameter="resources.customer.xyz"/>
>
> I could achieve js validation by setting "bundle"
> attribute of <html:javascript/>.
>
> Does anyone know how to achieve server side validation
> ???
>
> Thanks & Regards,
> Ramesh M
>
>
>
>
>
>
> __________________________________
> Yahoo! Mail - PC Magazine Editors' Choice 2005
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> 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