I have a problem with autopolulate function of
Struts forms.
For example, I have in my
jsp page the following constructs:
In my DynaActionForm I have a property:
When I access jsp page for the first time, everything is OK.
I can see my drop-down list, choose a value and send it to the Action.
Struts populates correct value in the producer_name property of the FormBean,
but the problem happens when I try to get back to this jsp page from my action.
What I get is a mess of various characters, i.e. I don't get my jsp page filled
correctly with old values contained in my FormBean. This means that autopopulate
of the jsp page using values from the FormBean doesn't work in this case.
It relates to previos use of the for loop.
How can I overcome this problem?