The moose likes Struts and the fly likes getting value from jsp dynamic table to ActionForm array Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Struts
Reply Bookmark "getting value from jsp dynamic table to ActionForm array" Watch "getting value from jsp dynamic table to ActionForm array" New topic
Author

getting value from jsp dynamic table to ActionForm array

Sumit c Gupta
Greenhorn

Joined: Mar 19, 2010
Posts: 2
Hi,

I have come across a strange problem. It is like

I have a jsp that adds rows to the table dynamically using addRow in javascript.

I have set the property as html:text =... property = "xyz"

in action form I have getter and setters for xyz as private String[] xyz;

the problem is this it takes the value of the first row only as form.getXyz[0].

rest all are gone. its a dyanamic table so cant fix the size and hence cant limit the iteration.

Please suggest.
Sumit c Gupta
Greenhorn

Joined: Mar 19, 2010
Posts: 2
anybody.. could plzzz help
 
 
subject: getting value from jsp dynamic table to ActionForm array
 
Threads others viewed
Please look into this problem
logic:equal tag
Updating duplicate rows
How to use Hashtable in iterate tag of Struts JSP
useBean action
IntelliJ Java IDE