You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mark Benussi <ma...@hotmail.com> on 2005/06/16 12:53:18 UTC

ActionForm losing Collection/Map property on forward

My ActionForm has a HashMap which backs its values.

 

Before I enter JSP 1 I populate the HashMap with values which are then
displayed on the page.

 

I then submit the form to an Action which processes the values submitted and
then forwards on to a JSP.

 

The problem is that the HashMap has lots its instantiation within the form.

 

If it was a String and I wanted to maintain its state across multiple pages
I would add a hidden field with the property name. I know that this won't be
possible with a map however.

 

Any thoughts people?