Thursday, July 30, 2009

How do I create a Java bean for Drop down menu and call the bean in Jsp!?

I want to create a registration page and there is a drop down menu on the page. I want to call the elements of the drop down menu using a java bean and the elements for the menu are from text/csv file. Can anyone suggest me the ideas in creating the bean !

How do I create a Java bean for Drop down menu and call the bean in Jsp!?
in the java bean:


u need to create the element as an array, and fill up the elements.


Have getter and setter for the element





in the jsp, u can just call the array and loop it and display the elements in the array.


No comments:

Post a Comment