You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by an...@MUZE.com on 2004/09/01 19:28:57 UTC
dispatch action / validation
Is there a way for dispatch actions to have unique validation requirements
based on the parameter?
So for instance I could have the action.do?method=view dispatch skip
validation, but the action.do?method=edit do the validation?
Do dispatch actions and validation allow for this degree of granularity?
Thanks,
-Andre
Re: dispatch action / validation
Posted by Rick Reumann <st...@reumann.net>.
andmer@MUZE.com wrote:
> Is there a way for dispatch actions to have unique validation requirements
> based on the parameter?
It's easiest to just provide different action mapping names (which could
still refer to the same DispatchAction class) and then use one of the
ValidatorActionForms which will validate based on action name and not
form name.
Also look at MappingDispatchAction in Struts 1.2
--
Rick
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org