I'm having a problem with some basic struts.
I'm trying populate a html drop down menu with
where the collection, types, is added to the request object via an Action, which then forwards onto the jsp including the above tags.
The collection is generated from a method in a model, which requires a parameter held in the session variable.
My problem is that I can't figure out how to populate the drop down, such that when the form is submitted and an error is return from the ActionFrom validate method, the form in the jsp keeps it values and the selection from the drop down is kept.
I have tried a couple of things.
1. to use an action that populates the request object with the collection, but when the form is submitted and an error is return the collection no longer exist in the request.
2. to add a method to my ActionForm such that it returns the collection, however, I rely on a session veriable to create collection, I can't seem to get at the from a method within the ActionForm object.
Is there an easy solution that I'm complety overlooking?