Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to use dynaproperties in struts 1.2

 
kiran nyala
Ranch Hand
Posts: 52
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if form controls(like textbox,checkbox,select box...) added dynamically to a form, how can i get and set the values of those properties in action class.

For example we have a 'EmployeeAdd' form in which one textbox with propertyName "Empname" one selectbox with propertyName "Department" is exist.
I want to add multiple employess as i required for that i provide a ADDROW button so that the same above form fields will generated dynamically using javascript code.Like that i want to add multiple records in database.
So how can i set propertyName attribute for those fields(form properties) which generated dynamically and how can i perform get() and set() methods for them in action class??
 
Joe Ess
Bartender
Posts: 9300
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at this discussion
 
kiran nyala
Ranch Hand
Posts: 52
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey Ess thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic