Hi to all
Does anyone have experience on performing
Struts Validation which covers multiple methods by using DispatchAction? How do you specified the input value for each method in the dispatch action?
For example, I have a action called UserProfileAdmin, which contains 3 methods, edit user, create user, delete user. For each method it is supposed to have different value set in the attribute "input" because validation need it.
But when you use DispatchAction and defined all 3 methods in one action mapping in struts-config.xml, it allowes us to have only one "input" attribute in this action mapping definition.
In that case, no matter the validation fails in either "edit user", "create user" or "edit user", it could only forwared to a single target, which is bad...
Please help me if you know how to resolve this, thanks a lot!