Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 controller in struts ?

929


What is the use of lookupdispatchaction?

963


What is apache struts vulnerability?

878


What is the purpose of @action annotation?

968


What is the use of resourcebundle.properties file in Struts Validation framework?

987


What are the Core classes of Struts Framework?

957


What are disadvantages of Struts?

964


What are the important methods of actionform?

1016


Why are springs better than struts?

1049


What is the purpose of global-forwards tag in struct-config.xml?

919


how to get the last 10 elements using logic:iterate in struts with hiernate from database.

4455


What is the purpose of form-beans tag in struct-config.xml?

873


Who makes the struts?

886


Explain architecture of struts2?

1041


Explain the necessity of empty tag?

953