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 lookupdispatchaction?
How do I access token?
What are the some useful annotations introduced in struts2?
Name some useful annotations introduced in Struts2?
How action-mapping tag is used for request forwarding in struts configuration file?
Why is it called struts?
Explain about the future of struts?
Where should struts xml be placed?
Which interceptor is responsible for mapping request parameters to action class Java Bean properties?
Which library is provided by struts for form elements like check boxes, text boxes etc?
How an actionform bean is created?
What is the purpose of @element?
while working struts in intellij 7.0error unable to initialize tld location cache: zip file is closed is displayed anybdy can answer me immdialy .ungert
Describe the mvc on struts?
What is the purpose of @doublerangefieldvalidator?