Struts 2中的ActionForm模式 [英] ActionForm pattern in struts 2
问题描述
我正在将struts 1应用程序迁移到struts2.在struts 2文档中,它比较了它说的区别,
I am migrating a struts 1 application to struts 2. In the struts 2 documentation which it compares the difference it says,
Struts 2还支持ActionForm模式以及POJO形式 对象和POJO动作.
Struts 2 also supports the ActionForm pattern, as well as POJO form objects and POJO Actions.
但是我在struts 1中找不到类似于ActionForm或ValidatorForm的任何类.因此,在这种情况下,如何使用新的struts 2 jar将现有的ActionForm模式保留在struts 1中.
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.
推荐答案
然后您需要进一步阅读
可以使用丰富的对象类型,包括业务或域对象 作为输入/输出对象. ModelDriven功能简化了标签库 对POJO输入对象的引用.
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.
要保留现有的ActionForm模式,请参见 Struts 1插件.
To keep existing ActionForm pattern see the Struts 1 Plugin.
这篇关于Struts 2中的ActionForm模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!