Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Database update

Status
Not open for further replies.

agabovich

IS-IT--Management
Sep 18, 2001
10
0
0
US
Hello. We have a JSP page that contains fields from a database table. A user can edit the information.
When SAVE button is clicked the information needs to be updated in the database.
Is there an easy way to create an update string that would only contain the changed fields?
Your reply would be greatly appreciated.

Alexander.
 
Maybe you can use hidden form elements to store the original values and have these values submitted along with the values entered by the value to a servlet, which compares the 2 sets of values and then creates an UPDATE SQL statement based on what's different.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top