Hey I'm having an issue passing a form correctly to my action class. I'm afraid I've setup my form incorrectly. The form I am passing is a table of inputs from the user. There will be 2 select boxes and then 4 input text boxes. One row is equal to one LineItem
java object with each input an attribute for the lineItem. So my form has an ArrayList of LineItems that I'm trying to pass.
The error I'm receiving is a null pointer when I try to get the list of LineItems off of the form when I submit the page.
First I call an action to initialize my lineItem array to 5 empty items and forward to my
jsp to iterate over them for my input table.
The jsp below is the table for the lineItems. When I go to saveLineItems I pull the line items off the form and they are null and I get a NPE. For completeness the MainPageBean is a session bean that holds the list of options for the dropdown boxes. I have also included the html rendered on the page.
upon submitting the form I get a NPE in my saveLineItems Action. Included below is the
struts config that is relevant