how can i fetch combo box value into my DAO using struts 2?
Answer Posted / sarath kumar ch
If your combo box is multiple select :
Declare one array String variable in your action.And that
variable name should match with the combo box name. Then you
will get all the selected values into your action. There you
pass those variable to your DAO.
If your combo box is single select you can directly declare
a variable in your action as the same name with combo box.
Sarath
| Is This Answer Correct ? | 18 Yes | 3 No |
Post New Answer View All Answers
What is controller in struts ?
What is the use of lookupdispatchaction?
What is apache struts vulnerability?
What is the purpose of @action annotation?
What is the use of resourcebundle.properties file in Struts Validation framework?
What are the Core classes of Struts Framework?
What are disadvantages of Struts?
What are the important methods of actionform?
Why are springs better than struts?
What is the purpose of global-forwards tag in struct-config.xml?
how to get the last 10 elements using logic:iterate in struts with hiernate from database.
What is the purpose of form-beans tag in struct-config.xml?
Who makes the struts?
Explain architecture of struts2?
Explain the necessity of empty tag?