How can I implement validation in different-2 methods of dispatchaction struts 1.2 framework
A:
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.
Daniel Melo
2010-03-01 02:08:51