| org.gomba.TransactorAbstractServlet org.gomba.AbstractServlet org.gomba.UpdateServlet
UpdateServlet | public class UpdateServlet extends AbstractServlet (Code) | | Perform a write operation on a JDBC data store. the SQL in the
query init-param can be an INSERT, UPDATE or DELETE statement.
This servlet inherits the init-params of
org.gomba.AbstractServlet ,
plus:
- query
- The SQL update to execute. May contain ${} parameters. This init-param
also accepts a path to a dynamic resource (a JSP) when dynamic SQL generation
is needed. The path must begin with a "/" and is interpreted as relative to
the current context root. (Required)
- batch
- true if the SQL contains multiple statements separated by semicolons.
Muliple updates are performed as part of single transaction. (Optional)
- http-method
- The value can be POST, PUT or DELETE. (Required)
Note about HTTP method usage. The POST method is normally used for creation
(INSERT in SQL) operations. The PUT method is normally used for update
(UPDATE in SQL) operations. The DELETE method is obviously used for deletion
(DELETE in SQL) operations.
author: Flavio Tordini version: $Id: UpdateServlet.java,v 1.12 2005/10/19 13:00:21 flaviotordini Exp $ |
|
|