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?

Answers were Sorted based on User's Feedback



how can i fetch combo box value into my DAO using struts 2?..

Answer / 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

how can i fetch combo box value into my DAO using struts 2?..

Answer / dsaf

Action - service -DAO

Create getter setters for name attribute in action otherwise u cant pass the values as parameters to DAo

Is This Answer Correct ?    3 Yes 1 No

how can i fetch combo box value into my DAO using struts 2?..

Answer / murali krishna yella

Hi friends, What i feel is.....
The above answer is partially correct.sharath has taken
only 2 things(multiple select and single select) into the
considaration, I think along with with those to we hav to
take one more thing(UI tag <s:checkbox/> or
<s:checkboxlist/> ) what we are using in the User interface
into considaration while giving the answer.

When we are using <s:checkboxlist/> tag in the usr
interface for displaying the Checkbox(s) , the Data type in
our struts2 action is List.


Thank you friends

Is This Answer Correct ?    3 Yes 2 No

Post New Answer

More Struts Interview Questions

What is the use of namespace in action mapping in Struts2?

0 Answers  


Main reasons for using servlet as a controller in struts. why not jsp

5 Answers  


What is meant by custom tags?

0 Answers  


How does struts2 token work?

0 Answers  


how you provide security in your banking project

1 Answers   IBM,


How to carryout the validations in struts if the validator frame work cant handle the validation

2 Answers   Syntel,


what is ACID test for fresh engineers??what is the pattern??

0 Answers  


What is dispatchaction?

0 Answers  


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

0 Answers   Wipro,


What do you mean by the abstract package in struts2, and what is its utilization?

0 Answers  


What is ognl?

0 Answers  


Even though Servlets and JSP are web based concepts .wht is the use of using Struts using then

8 Answers   TCS,


Categories