wood burning stoves 2.0*
The moose likes Struts and the fly likes how to use dynaproperties in struts 1.2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to use dynaproperties in struts 1.2" Watch "how to use dynaproperties in struts 1.2" New topic
Author

how to use dynaproperties in struts 1.2

kiran nyala
Ranch Hand

Joined: Sep 21, 2009
Posts: 47

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

Joined: Oct 29, 2001
Posts: 8877
    
    8

Have a look at this discussion


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
kiran nyala
Ranch Hand

Joined: Sep 21, 2009
Posts: 47

hey Ess thanks
 
 
subject: how to use dynaproperties in struts 1.2