FileDocCategorySizeDatePackage
UpdateTag.javaAPI DocGlassfish v2 API3257Sat May 05 19:17:58 BST 2007org.apache.taglibs.standard.tag.el.sql

UpdateTag

public class UpdateTag extends org.apache.taglibs.standard.tag.common.sql.UpdateTagSupport
Subclass for the JSTL library with EL support.
author
Hans Bergsten

Fields Summary
private String
dataSourceEL
private String
sqlEL
Constructors Summary
Methods Summary
public intdoStartTag()

	if (dataSourceEL != null) {
	    rawDataSource = (Object) 
		ExpressionEvaluatorManager.evaluate("dataSource", 
		    dataSourceEL, Object.class, this, pageContext);
	}
	if (sqlEL != null) {
	    sql = (String) ExpressionEvaluatorManager.evaluate("sql", sqlEL, 
	        String.class, this, pageContext);
	}
	return super.doStartTag();
    
public voidsetDataSource(java.lang.String dataSourceEL)

	this.dataSourceEL = dataSourceEL;
	this.dataSourceSpecified = true;
    
public voidsetSql(java.lang.String sqlEL)
Setter method for the SQL statement to use for the query. The statement may contain parameter markers (question marks, ?). If so, the parameter values must be set using nested value elements.

	this.sqlEL = sqlEL;