I am doing my project in struts2 framework. but i cant find a way to specify a dropdown list from a database.. is there a way.. pls help
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you are talking about a drop down list in your JSP page than there is already a select Tag for that
where list is a Iterable source to populate from. If the list is a Map (key, value), the Map key will become the option ‘value’ parameter and the Map value will become the option body.
All you need to create a
List/Map/Arrayin you action class and provide its getter and setter how the list will be picked form the ActionClass in jsp will be handled by the framewrok itselfAction Class