• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Moving ArrayList of Objects from JSP to Action

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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"
name="<%= Constants.GRID_DETERMINATIONS_ARRAY_LIST %>"
scope="session"
type="com.coramhc.common.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>
<td>
<html:select property="processResp" size="1">
<html:option value=""></html:option>
<html:option value="CMPLD">CMPLD</html:option>
<html:option value="OIS">OIS</html:option>
<html:option value="RDA">RDA</html:option>
<html:option value="BMA">BMA</html:option>
<html:option value="PMA">PMA</html:option>
<html:option value="DEN">DEN</html:option>
</html:select>
</td>
<td>
<html:radio property="overrideInd" value="A"/>Approve
<html:radio property="overrideInd" value="D"/>Deny
</td>
<td> </td>
</font>
</tr>
</logic:iterate>
 
I like tacos! And this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic