我如何在不同的DispattionAction Struts 1.2框架2方法中实现验证
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.