ActionForm pattern in struts 2

懵懂的女人 提交于 2020-01-16 10:17:51

问题


I am migrating a struts 1 application to struts 2. In the struts 2 documentation which it compares the difference it says,

Struts 2 also supports the ActionForm pattern, as well as POJO form objects and POJO Actions.

But i dont find any classes similar to ActionForm or ValidatorForm in struts 1. So in this case how can i keep the existing ActionForm pattern in struts 1 with the new struts 2 jars.


回答1:


Then you need to read further

Rich object types, including business or domain objects, can be used as input/output objects. The ModelDriven feature simplifies taglib references to POJO input objects.

To keep existing ActionForm pattern see the Struts 1 Plugin.



来源:https://stackoverflow.com/questions/23102702/actionform-pattern-in-struts-2

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!