I'm new to Struts2 (worked on some Struts1 about 6 years ago) and I'm creating a new app from scratch. I'm running some stored procedures and building a beanList (of varying count) which I'm displaying through a
JSP with each bean in the ArrayList displaying on the screen properly. However, when I click a submit button on the page I am wanting to get that beanList back and iterate through the beanList returned from the JSP (one of the bean properties is displayed in a textbox which the user can change the contents of) comparing with one I save in the session to see if there are any changes. Unfortunately the beanList in my action is null on returning from the JSP. If I remember correctly Struts1 handled passing that information back without me having to write code. Am I missing something simple here?
Here's the action (tried to make it more readable by just putting in comments for large chunks of code, the first line in the execute is what I'm trying to figure out).
Here's the JSP code. I removed some to make it easier to read. It does display the rows correctly, and I am able to edit each msgId text field for each row.
Sorry for the noob question, but I must be missing something very simple here as it seems I should be able to get an array of beans (or properties) back from the JSP. If not how and I supposed to get a list of items back from the JSP?