Validation in DispatchAction in struts 1.2 framework
H开发者_运维问答ow can I implement validation in different-2 methods of dispatchaction struts 1.2 framework
Specify two different action mappings for this particular dispatch action class. For each mapping you may specify a different validation setting.
<action path="/someAction" name="somForm" type="com.examples.SomeDispatchAction />
<action path="/anotherAction" name="anotherForm" type="com.examples.SomeDispatchAction />
Note that the same class declares two different action forms named "someForm" and "anotherForm". This way you can specify two different validations set.
精彩评论