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 do you mean by a custom tag?
What does validation interceptor?
What are inner class and anonymous class?
What are the important methods of actionform?
What is struts validator framework?
What is the use of resourcebundle.properties file in Struts Validation framework?
What are the advantages of spring mvc over struts mvc?
What is Custom Type Converter in Struts2?
Which library is provided by struts for form elements like check boxes, text boxes etc?
How many instances of servlet usually run in a struts application ?
What are the applications of struts?
How to combine the struts with velocity template?
What are pull and push mvc architecture and which architecture does struts2 follow?
What’s the difference between validation.xml and validator-rules.xml files in struts validation framework?
Can you explain struts.properties in struts2?