I decided to put this question into a
thread of its own to keep things clear.
I now know the
jsp part of dropdown lists (static options), but now I want to add dynamic values. I understand this can be done with a collection bean, but how exactly?
I'm using
Struts w/ Hibernate and I am able to do simple inserts and retrievals from the database (select * from..).
ComponentService.java contains:
The getComponentList i use in my JSP file to show all the values in my Component table
My Action class is called AddComponent.java and my formbean class is called ComponentForm.java
So where and most importantly how do i make the collection and can I use one of the two methods above in my ComponentService?