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


Please Help Members By Posting Answers For Below Questions

What is use of i18n interceptor?

728


What is difference between interceptors and filters?

734


Explain the complete struts validator framework.

745


How many instances of servlet usually run in a struts application ?

737


What are the features of struts?

760


Which file is used by controller to get mapping information for request routing?

779


how to connect from struts to database through hibernet and where u can modify the class

2293


What are the differences between Struts1 and Struts2 or how Struts2 is better than Struts1?

778


What is action chaining ?

822


Can we have multiple struts config files in a single web app?

694


What is the purpose of @urlvalidator annotation?

729


What is the difference between Jakarta Struts and Apache Struts? Which one is better to use?

766


What is the purpose of @doublerangefieldvalidator annotation?

760


Are struts and shocks the same?

669


What’s the difference between struts and espresso?

684