I have the following sort of working -
selectedGoalID is the get/set in my browseform (aka the browse bean)
I have a class called goal with a getName method.
The form returns an arraylist of goals.
The above tag will generate a select box with 4 options, the number of goals I have. The names are completely wrong, as I would expect. What I need is this -
- a value for each goal, the goal's id
- a displayed option, the goal's name
- the selected goal needs to remain selected after going through the action form
The following is what 'works' in the sense, it displays the names and has the value associated with id. It keeps reseting to the first option after going through the action though.
The Mastering Jakarata
Struts book by J. Goodwill only provides a simple example. I haven't gotten a better understanding from the struts docs either.
What am I missing?
Regards,
Aaron R>
[ September 26, 2002: Message edited by: Aaron Roberts ]