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 are the two scope types for formbeans?

1304


What is the purpose of @element annotation annotation?

1142


For a single Struts application, can we have multiple struts-config.xml files?

1040


Are interceptors thread safe?

1058


What is Custom Type Converter in Struts2?

1140


Can you explain aware interfaces in struts2?

1080


What do you mean by actionservlet?

1040


Why struts 1 classes are not thread safe whereas struts 2 classes are thread safe?

984


What are the bundled validators?

1051


How does one create an action in struts 2?

1003


Which design pattern the interceptors in struts2 is based on?

978


What is request processor and how does it relates to action mapping?

1088


Can I have html form property without associated getter and setter formbean methods?

1073


What is the purpose of @doublerangefieldvalidator?

1115


What are disadvantages of Struts?

1115