you can hve more than one resource bundle ..In struts-config file:

        <message-resources
    parameter="org.apache.struts.webapp.example.ApplicationResources"/>

  <message-resources
 
parameter="org.apache.struts.webapp.example.AlternateApplicationResources"
    key="alternate">
  </message-resources>


Then in validation.xml u can give like this for a specific form-field  a
seperate resource bundle:

<field property="password"
                    depends="required, minlength,maxlength"
                    bundle="alternate">

and for otheres it will take the default bundle: applicationresources..

Shobhana



-----Original Message-----
From: Otto, Frank [mailto:[EMAIL PROTECTED]
Sent: Monday, March 15, 2004 6:08 PM
To: Struts-User (E-Mail)
Subject: validation


Hi,
 
is there any possibility to use another resource bundle in validaton.xml? Or
can I set somewhere which resources validation should use?
 
 
Regards,
Frank

Reply via email to