O'Reilly logo

Java EE 6 Development with NetBeans 7 by David R. Heffelfinger

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Modifying database data with the <sql:update> tag

The JSTL<sql:update> tag allows us to modify database data either through SQL INSERT, UPDATE, or DELETE statements. Just like other JSTL tags we have discussed so far, the easiest way to use this tag with NetBeans is to drag the appropriate item from the NetBeans palette into our page.

Inserting database data

To execute an INSERT statement, we can drag the DB Insert item from the NetBeans palette into our page.

Inserting database data

After dropping the DB Insert item into our page, we are prompted for additional information.

The value of the Variable Name field is a variable of type java.lang.Integer that will hold the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required