wood burning stoves 2.0*
The moose likes Struts and the fly likes dynamic multibox - populate an Array in ActionForm from Action class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "dynamic multibox - populate an Array in ActionForm from Action class" Watch "dynamic multibox - populate an Array in ActionForm from Action class" New topic
Author

dynamic multibox - populate an Array in ActionForm from Action class

Kevin Vicy
Greenhorn

Joined: Aug 21, 2005
Posts: 6
Hi,

I am trying to display a dynamic multibox for which the entries are retrieved from a database table. I have a ActionForm containing an ArrayList for holding all possible values as LabelValueBean and a String array to hold the selected items. Now I am trying to populate this form from Action class and forward to jsp which iterates over the ArrayList and displays the multibox. The problem is while populating the ActionForm ArrayList from the Action class, for some reason jsp gets a null ArrayList. I tried to populate a text box the same way it works but not the ArrayList or any Array. Am I missing any initialization? Would be great if you could post a code that does this work. Please note that I want to populate the ActionForm from Action class.

Thanks
Kevin
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
It would be helpful if you posted the code that is not working.

- Brent
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: dynamic multibox - populate an Array in ActionForm from Action class
 
Similar Threads
multibox functionality in struts
Iterator and multibox
multibox , resultSet, logic:iterate
form with multibox on several pages
multibox - nullPointerException