This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes JSP and the fly likes Moving ArrayList of Objects from JSP to Action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Moving ArrayList of Objects from JSP to Action" Watch "Moving ArrayList of Objects from JSP to Action" New topic

Moving ArrayList of Objects from JSP to Action

Ron Rea

Joined: Jul 03, 2001
Posts: 23
I have an ArrayList of GridDetermination objects in session scope. I sent this to a JSP which displays the arraylist properties. I then make changes to a property and hit submit, but when the action gets the arraylist (via the session.getAttribute) the changes are not there. The ArrayList is the same as when I sent it.
Is there a step in the JSP that I am missing, like a setProperty, etc..., that will store the changes into the ArrayList in the session scope?
Thanks in advance!
example of JSP iterate:
<logic:iterate id="gridDeterminations"
<td><bean:write name="gridDeterminations" property="messageCode" filter="true"/> </td>
<td><bean:write name="gridDeterminations" property="messageDesc" filter="true"/> </td>
<td><bean:write name="gridDeterminations" property="messageSeverity" filter="true"/> </td>
<html:select property="processResp" size="1">
<htmlption value=""></htmlption>
<htmlption value="CMPLD">CMPLD</htmlption>
<htmlption value="OIS">OIS</htmlption>
<htmlption value="RDA">RDA</htmlption>
<htmlption value="BMA">BMA</htmlption>
<htmlption value="PMA">PMA</htmlption>
<htmlption value="DEN">DEN</htmlption>
<html:radio property="overrideInd" value="A"/>Approve
<html:radio property="overrideInd" value="D"/>Deny
<td> </td>
I agree. Here's the link:
subject: Moving ArrayList of Objects from JSP to Action
It's not a secret anymore!