T
T-Boy
Hello everyone.
I am building a web interface with struts. I have a collection of
objects that are represented on a jsp page and for every object in the
collection, the users can change one or more properties.
Now when the users submit the form that is listing all the objects, I
need a way to detect which objects have been changed and if possible
even which attributes have been changed and also the old value of the
attribute. I can give you an example. Lets say we have a list of
objects that each have an attribute which is a string. Now when the
user submits the form with the list I would like to know: which object
have changed the internal value of the string! and also what the old
values of of the internal attributes was before the change.
Is there any pattern that accomplishes this or is the anybody that has
a good idea on how to solve this!
I am building a web interface with struts. I have a collection of
objects that are represented on a jsp page and for every object in the
collection, the users can change one or more properties.
Now when the users submit the form that is listing all the objects, I
need a way to detect which objects have been changed and if possible
even which attributes have been changed and also the old value of the
attribute. I can give you an example. Lets say we have a list of
objects that each have an attribute which is a string. Now when the
user submits the form with the list I would like to know: which object
have changed the internal value of the string! and also what the old
values of of the internal attributes was before the change.
Is there any pattern that accomplishes this or is the anybody that has
a good idea on how to solve this!