aspose file tools*
The moose likes Struts and the fly likes Dynamic arrays of beans in ActionForms Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Dynamic arrays of beans in ActionForms" Watch "Dynamic arrays of beans in ActionForms" New topic
Author

Dynamic arrays of beans in ActionForms

Vladimir Miguro
Greenhorn

Joined: May 18, 2009
Posts: 5
Hi boys & girls.... I have a problem now :-)

Imagine that we have some table showing list of our products... And we want dynamically add another products...
with the help of js we add a for example 5 row to the talbe...
but how we can save the values of this ?
One solution :


and in the jsp we can add any textfields with the @name=productName and @name=productModel
and all of this Strings will be populate to the productName & productModel arrays...
but I want to define a beans


and in jsp smth like:


and in Action I want to get an array of products

But I have:
java.lang.IllegalArgumentException: No bean specified
Vladimir Miguro
Greenhorn

Joined: May 18, 2009
Posts: 5
ну еб тваю мать, че ж все молчат...?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

30 minutes isn't very long to wait for an answer.

Without seeing what you're *actually* doing it's difficult to help.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Dynamic arrays of beans in ActionForms