I'm able to display the data just fine. But when I change a value in a text field, the action doesn't recognize the new value. The request variable doesn’t get loaded when I submit the action and/or the session variable doesn’t get reset.
Any help will be greatly appreciated.
What Vijay said. Why even set the form in scope as an attribute and try to retrieve again in an action when you have the form object readily available with you as a parameter of the execute method? I don't just quite get the need for setting and retrieving the form instance as attributes.
Coderanch, best ever forum on the net. Hands down.
Hi Vicky -- thanks for the help. I am making progress based on your help -- it is appreciated very much.
I finally got my form submission to retain values. But, now I am having an issue with the initialization of an Arraylist. My nested form variables need this initialization, when I’m trying to change more rows on the screen than have been initialized in the form, I get that out of bounds error… When the action is perform and Struts loads the form, it must be resetting it first before it loads the variables from the screen. I was having that index problem for a couple weeks on and off, it probably all boils down to this…
If I want 200 rows on the screen, I have to initialize 200 objects, doesn’t seem very dynamic
Surely, there is a better way to do this. Could you please guide me in the right direction?