Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Regarding Struts FormBean mappings

 
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
 
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.
 
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..


 
brevity is the soul of wit - shakepeare. Tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
    Bookmark Topic Watch Topic
  • New Topic