I have coded lil bit in struts but i am not very good at it. I need help in how do the following:
I have developed a Add User(JSP) page where the username,password and userrole are just text fields. Once entered the data is directed to Action Class where it is stored in a database table.
Now what i need to do is modify the same page a little, i.e., the user roles need to be pulled from a database table and shown in a drop down list on the initial JSP for the user to select from one of them.
I know that options or options collection can be used. But i am not clear yet as to how i can display the data from the database in the initial JSP i.e, AddUser JSP.