开发者

Validation in DispatchAction in struts 1.2 framework

开发者 https://www.devze.com 2022-12-20 12:05 出处:网络
H开发者_运维问答ow can I implement validation in different-2 methods of dispatchaction struts 1.2 frameworkSpecify two different action mappings for this particular dispatch action class. For each map

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号