Tip : How to instantiate ActionForm(sub-class) base on form name
2005-03-25 09:28
645 查看
Assume form name is "roleForm", and type is DynaValidatorForm
DynaValidatorForm roleForm = (DynaValidatorForm) mapping.getModuleConfig()
.findFormBeanConfig("roleForm")
.createActionForm(this.getServlet());
DynaValidatorForm roleForm = (DynaValidatorForm) mapping.getModuleConfig()
.findFormBeanConfig("roleForm")
.createActionForm(this.getServlet());
相关文章推荐
- How to set window title name on Oracle EBS Form?
- How to use toolbar control on dialog using CToolBar class in VC++ - VC++ 中用CToolBar 类如何使用ToolBar控件
- 关于struts2框架中的“There is no Action mapped for namespace /a and action name toform.”这个错误的原因
- How To Make Bootanimation (Base on Android Source Code)
- How to draw bitmap on the form - 如何在窗体上画(贴)位图
- Unable to read class [com.mrp.action.BaseAction]
- IllegalStateException: Can not perform this action after onSaveInstanceState - How to prevent?
- Unable to instantiate fragment com.viewpager.demo.FirstFragment: make sure class name exists, is pub
- how to get Class of primitive datatypes array . Class.forName(int[]) throws exception
- how to remove MouseListener / ActionListener on a JTextField
- Unable to instantiate fragment com.doov.music.online.search.SearchHWRFragment: make sure class name
- Unable to instantiate fragment make sure class name exists, is public, and has an empty constructor
- [Selenium]How to click on a hidden link ,move to the drop down menu and click submenu
- How to use JSon data in mvc action and post form data use JQuery ajax
- How to change default form name "aspnetForm" in Beta 2
- how to correctly extend form_for / ActionView::Helpers::FormBuilder
- Flex warning: unable to bind to property 'name' on class 'Object' (class is not an IEventDispatcher)
- how to list tabes based on column name in sybase?
- How to change hostname for E-Business Suite Release 12 on single node (Doc ID 1277556.1)
- How to change default form name "aspnetForm" in Beta 2