How to provide different Validator Resources

2005-10-05 Thread Ramesh Mohan Reddy
Hi, How can I set different validator resources in struts action before calling validate(...) method ? I have got one jsp and one declaration in validation.xml that are common for 2 types of customers, "abc" and "xyz". I have got message resource elements like below:- I could achieve js va

Re: How to provide different Validator Resources

2005-10-05 Thread Ramesh Mohan Reddy
.xyz" respectively... Any help Thanks & Regards, Ramesh M. --- Niall Pemberton <[EMAIL PROTECTED]> wrote: > Yes, you just use the "bundle" attribute on either > the or the > element: > > > > > or > > >

Re: Associating validation errors with input fields

2005-10-18 Thread Ramesh Mohan Reddy
Hi there, Say u hv a with the property name "custName". U can use right below the . So, when an action error occurs, it will be displayed right below the corresponding to the property. Regards, Ramesh M. --- Christopher Becker <[EMAIL PROTECTED]> wrote: > > I have a form in a Struts app

Accessing global constants programatically

2005-12-22 Thread Ramesh Mohan Reddy
Hi there, I am using 1.2.7 version of struts. Is there any way using which I can access global constants declared in validation xml file inside my actions. The reason being I need to apply regular expressions explicitly. Regards, Ramesh. __ Do