Thanks for your answer, but it doesn't function.

I use struts-validation 1.0.2. Perhaps is this the problem? I don't find a newer 
version on jakarte site. With nightly build it didn't validate my form.

The same proplem I have with struts-config.xml. If I use bundle="alternate" in my 
action definitions, it will not be used.

-----Ursprüngliche Nachricht-----
Von: Shobhana.S, ASDC Chennai [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 15. März 2004 13:43
An: Struts Users Mailing List
Betreff: RE: validation



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to