Updating row using servlet

The following JSP code shows how to use a Table Info component and nested For Each servlet beans to render a simple table of user profile information.

updating row using servlet-19

In this chapter, you will see how you can modify the sample application and add functionality that allows users to edit, update, and delete data in Oracle Database.

Ajax interactions are initiated by Java Script code.

When the Ajax interaction is complete, Java Script updates the HTML source of the page.

These CRUD operations are equivalent to the INSERT, SELECT, UPDATE and DELETE statements in SQL language.

Although the target database system is My SQL, but the same technique can be applied for other database systems as well because the query syntax used is standard SQL which is supported by all relational database systems.

Leave a Reply