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 are the two scope types for formbeans?
What is the purpose of @element annotation annotation?
For a single Struts application, can we have multiple struts-config.xml files?
Are interceptors thread safe?
What is Custom Type Converter in Struts2?
Can you explain aware interfaces in struts2?
What do you mean by actionservlet?
Why struts 1 classes are not thread safe whereas struts 2 classes are thread safe?
What are the bundled validators?
How does one create an action in struts 2?
Which design pattern the interceptors in struts2 is based on?
What is request processor and how does it relates to action mapping?
Can I have html form property without associated getter and setter formbean methods?
What is the purpose of @doublerangefieldvalidator?
What are disadvantages of Struts?