开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜