Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regarding Struts FormBean mappings

 
Kuyni Kumar
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Team
In struts 1.3.x
We have to maintain the mapping between html form input controls and FormBean set/get methods
Now I am in a situation, where I do not want mapping for some of the controls in html with Formbean. Some one please suggest me.
Note: I have to use to struts as I am using tilesframe work.

Thanks in advance
 
Pyla Rao
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If dont want use form bean for mapping html elements , you can use dyna action form.then no need of setter and getter methods.
 
Sandip Ram
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I Have a small doubt here.
Whether you want to remove your ActionForm completely or just want to remove get/set methods from form bean class.
 
Pyla Rao
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want use DynaActionForm instead of ActionForm, there no need setter and getter methods, DynaActionForm take care about those.

but you need to mention in struts-config file as following/
Struts-config.xml


But in Action class



There is no need of create actionform,struts is doing it for us..


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic