Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Struts and the fly likes Submit  data only if changes happened Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Submit  data only if changes happened" Watch "Submit  data only if changes happened" New topic

Submit data only if changes happened

Naren Chivukula
Ranch Hand

Joined: Feb 03, 2004
Posts: 577


I'm submitting my form data containing some rows and two columns. Anytime, user can open the page, edit the information and submit. I'm using ActionForm wherein I'm having two arrays to hold two column values. But the problem is every time user submits the page, ActionForm is populated with all the data. But I want the Form to be populated only the rows which user modifies. I know this how to do using javascript. But I'm just curious to know whether Struts provides this kind of feature to handle directly.

Thanks in advance,

(OCEEJBD6, SCWCD5, SCDJWS, SCJP1.4 and Oracle SQL 1Z0-051)
It is sorta covered in the JavaRanch Style Guide.
subject: Submit data only if changes happened
jQuery in Action, 3rd edition