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 use of i18n interceptor?
What is difference between interceptors and filters?
Explain the complete struts validator framework.
How many instances of servlet usually run in a struts application ?
What are the features of struts?
Which file is used by controller to get mapping information for request routing?
how to connect from struts to database through hibernet and where u can modify the class
What are the differences between Struts1 and Struts2 or how Struts2 is better than Struts1?
What is action chaining ?
Can we have multiple struts config files in a single web app?
What is the purpose of @urlvalidator annotation?
What is the difference between Jakarta Struts and Apache Struts? Which one is better to use?
What is the purpose of @doublerangefieldvalidator annotation?
Are struts and shocks the same?
What’s the difference between struts and espresso?