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
How is the action mapping specified?
What is struts2 namespace?
What is struts in java with example?
What is form bean in struts?
What is use of i18n interceptor?
What is difference between interceptors and filters?
How we can configured action mapping in struts?
What do you mean by ognl?
What is switchaction?
What’s the utilization of resource bundle properties file in struts validation structure?
Give the details of xml files used in validator framework?
How many struts config file can be created in struts?
What is the purpose of constant tag in struts.xml?
How do struts work?
What is the configuration files used in struts?