This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 8836
    
    7

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
 
jQuery in Action, 2nd edition
 
subject: how to use dynaproperties in struts 1.2
 
Similar Threads
Submit form text fields (group) with same name
Problem with ActionForm + dynamically generated fields..
problem in forms..
adding textbox dynamically in struts
retreive the value