| Author |
Struts 2.0 Ajax dojo
|
Todd Smith
Greenhorn
Joined: Dec 16, 2010
Posts: 25
|
|
My question is how do I get the 2nd drop down value in a struts action. I want to add both values of the boxes to the database. I can get the first but not the 2nd box.
|
 |
Jesus Mireles
Ranch Hand
Joined: Mar 10, 2010
Posts: 122
|
|
|
Your question doesnt even make any sense but in any action you can just have a getter for the list you are trying to get ... but I'm not sure if you are asking how to get the list values or if you are asking how to get the value that the user selected and when it submits the form you are trying to get that value ...
|
 |
Todd Smith
Greenhorn
Joined: Dec 16, 2010
Posts: 25
|
|
|
I am trying to get the value the user selected in the secound drop down box. I wanted to add a submit button that calls a struts action to update the database with the 2 values from the drop down box. The first box has a name tag that I can reference from the interceptors int he struts action but I am not sure how to reference the secound box int he action it has no name tag to create a getter for.
|
 |
Jesus Mireles
Ranch Hand
Joined: Mar 10, 2010
Posts: 122
|
|
|
So why dont you put a name attribute?
|
 |
 |
|
|
subject: Struts 2.0 Ajax dojo
|
|
|