ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Java J2EE  >>  Java Related  >>  Struts
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
how can i fetch combo box value into my DAO using struts 2?
 Question Submitted By :: Ashvin Ranpariya
I also faced this Question!!     Rank Answer Posted By  
 
  Re: how can i fetch combo box value into my DAO using struts 2?
Answer
# 1
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 ?    11 Yes 2 No
Sarath Kumar Ch
 
  Re: how can i fetch combo box value into my DAO using struts 2?
Answer
# 2
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 ?    2 Yes 0 No
Murali Krishna Yella
 
 
 

 
 
 
Other Struts Interview Questions
 
  Question Asked @ Answers
 
how can u handle run time exceptions in struts and jsp plz explain briefly not single word answer? TCS2
how can i fetch combo box value into my DAO using struts 2?  2
What is Request Dispatcher and What is reuest Processor??  2
how the error can be showed in the jsp page in struts? Wipro2
its a ActionForm controller or model? Wipro13
In ActionClass we can use only one action i.e execute(), but in DispatchAction we can use multiple actions.My question is , we can use multiple actions in Action class if(action.equals("add") if(action.equals("update"). Then when to use Action and DispatchAction which is frequently in webapplications.  2
how handle when client send multiple request at atime for single servlet IBM3
How do you know what to give for the "path " under in struts-config.xml ?  1
can anyone help me to send the code for Jasper Reporting in java?plz CSC2
explain the struts-configuration file? TCS2
struts comes under which layer of three tire architecture in real time projects plz i need explaination? Infinite-Computer-Solutions6
session menagement in servlets explaion briefly?  1
drawback of Validation Framework where and how to write the connection pool object in the programe how to debug the programe and application in struts without using eclips  1
i have list of values(e.g 100). using logic:iterate, how can i print the multiples of 5th element? how the logic:iterate will understand the multiples of 5. CTS2
explain method overridding method overloding with examples? IBM4
Difference between JSF Framework and Struts Framework. Accenture8
Hi All thanks in advance, iam new to j2ee currently in my project we r using struts with hibernate can i have one sample application like CRUD application with code or any tutorials liks r ebooks plz....? IBM1
What is Request Dispatcher and what is Request Process?  2
How to explain struts work flow TCS5
How to depoly your struts application in JBOSS Satyam1
 
For more Struts Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com