I have a form where I read data from database and fill some text fields. Now the user can make changes on them and save them.
Now what mechanism I have think about to update the tables is to save them temporary into objects and when the form is submit to check the object with the right getParameter to see if they differ and update the table.
Is there any better way. For example using AJAX or anything else?
All important business logic must take place on the server.
I Agree. Doing this type of validation on the client side is always unsafe. Instead,
1) you can store them in to a bean/form. 2) Write a logic to connect to the database and update the values in a DAO. 3) Use/Call this DAO from the corresponding servlet. [ May 28, 2008: Message edited by: Prasad Tamirisa ]