public class SetDataSourceTagSupport extends TagSupport
Tag handler for <SetDataSource> in JSTL, used to create a simple DataSource for prototyping.
Modifier and Type | Field and Description |
---|---|
protected Object |
dataSource |
protected boolean |
dataSourceSpecified |
protected String |
driverClassName |
protected String |
jdbcURL |
protected String |
password |
protected String |
userName |
id, pageContext
EVAL_BODY_AGAIN
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
Constructor and Description |
---|
SetDataSourceTagSupport() |
Modifier and Type | Method and Description |
---|---|
int |
doStartTag()
Default processing of the start tag, returning SKIP_BODY.
|
void |
release()
Release state.
|
void |
setScope(String scope)
Setter method for the scope of the variable to hold the
result.
|
void |
setVar(String var) |
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
protected Object dataSource
protected boolean dataSourceSpecified
protected String jdbcURL
protected String driverClassName
protected String userName
protected String password
public void setScope(String scope)
public void setVar(String var)
public int doStartTag() throws JspException
TagSupport
doStartTag
in interface Tag
doStartTag
in class TagSupport
JspException
- if an error occurs while processing this tagTag.doStartTag()
public void release()
TagSupport
release
in interface Tag
release
in class TagSupport
Tag.release()
Copyright © 2016 JBoss by Red Hat. All rights reserved.