aspose file tools*
The moose likes Struts and the fly likes Action form that contains a collection of an unkown length Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Action form that contains a collection of an unkown length" Watch "Action form that contains a collection of an unkown length" New topic
Author

Action form that contains a collection of an unkown length

david allen
Ranch Hand

Joined: Sep 27, 2002
Posts: 185
Hello,

I would like to pass a hash map collection to a jsp page and for the map to be traversed to create a series of struts text boxes. Each text box will be identified by the hash map ID and the value of the text box will be the hash map value. In other words, I want the key of the map to be the value of the name attribute of the struts text box and the value of the map to be the property value of the text box.

I think there is information on this in the struts documentation. However, how do I get these values from the form back into a hash map. Do I declare a hash map attribute in the ActionForm class? This data is data base driven so I can never know how many text boxes there will be

thank you
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

Check outMap-Backed ActionForms


A good workman is known by his tools.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Action form that contains a collection of an unkown length