This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Adding new elements to table in struts 1.2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Adding new elements to table in struts 1.2" Watch "Adding new elements to table in struts 1.2" New topic
Author

Adding new elements to table in struts 1.2

sam kulkarni
Greenhorn

Joined: Mar 18, 2011
Posts: 12
Hi Friends,

I am new to Struts 1.2 , what my application wants is to add rows to table(I have created table using logic iterator the data is populated using a VO) on click of a add button in header of the table, without submitting the form.

My question is, will by Form bean get updated once i add elements to table using javascript?
For e.g. if on screen load, total row count is 2, then i add 2 elements using javascript on submitting the form will i get row count as 4 or 2?

Also, if let me know if there is any alternative to this approach?


Cheers
Rudy Gireyev
Ranch Hand

Joined: May 03, 2011
Posts: 39
I use the Displaytag library for my table UI handling and would recommend it for more complex table display schemes.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Adding new elements to table in struts 1.2
 
Similar Threads
In struts, How to solve this with Database and jsp?
Javascript and struts 2 problem
Transferring table data using struts
How does struts handle dynamic forms that grow and its retrieval?
need to add a row dynamically on click of a button