Doesn't the ValidatorActionForm provide a means of getting/setting the 
validation key to be used (normally set to the mapping.getPath())?  If that's 
the case, can't you inject your own key programmatically?
________________________________________
From: dancerjohn [EMAIL PROTECTED]
Sent: Monday, December 08, 2008 11:08 AM
To: user@struts.apache.org
Subject: Multiple Validation Options?

I have a situation where we have a single code base and struts config files
that support multiple sites. I want to be able to do different validation on
each site. If I have a form A that has field a, I want to apply one set of
rules for web-site 123 and a different set of rules for web-site abc. How
would I do this?

I see that struts supports formsets but selection of the formset seems to be
solely by locale. Is there a way to use the formset framework and have my
code specify dynamically which formset to use?

I thought about overloading org.apache.struts.validator.ValidatorPlugIn.

Any thoughts would be appreciated.
John
--
View this message in context: 
http://www.nabble.com/Multiple-Validation-Options--tp20898122p20898122.html
Sent from the Struts - User mailing list archive at Nabble.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