I'm using Struts 1.3.5 and when I last checked there was a method getValidationKey:
getValidationKey(ActionMapping mapping, HttpServletRequest request) Returns the Validation key. This is fired inside of the validate() method to determine which validation ruleset to use inside the validation.xml file. So, I would think you could now determine what this method should return and then it would lookup another ruleset from the validations.xml file. ________________________________________ From: dancerjohn [EMAIL PROTECTED] Sent: Monday, December 08, 2008 3:22 PM To: user@struts.apache.org Subject: RE: Multiple Validation Options? I am not sure what you mean. I don't see anything about a key or path in the API for ValidatorActionForm or ValidatorForm. Also, I would think that hitting these would be too late. If I understand it correctly (and I am new so maybe not), struts-config.xml specifies that ValidatorPlugin should be used to parse validation.xml to do validation on various forms. I want to make a change so that ValidatorPlugIn will use a different set of rules depending on what site is being run (determined by a database query). <formset> seems to provide this type of capability but it seems to be limited to Locale variability. Eric J Givler wrote: > > 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? > > -- View this message in context: http://www.nabble.com/Multiple-Validation-Options--tp20898122p20902765.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]