com.jcorporate.expresso.ext.taglib
Class ExSetupTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.apache.struts.taglib.bean.DefineTag
com.jcorporate.expresso.ext.taglib.ExSetupTag
- All Implemented Interfaces:
- BodyTag, IterationTag, Serializable, Tag
- public class ExSetupTag
- extends org.apache.struts.taglib.bean.DefineTag
Define a scripting variable based on the value(s) of the specified
bean property.
- Author:
- Shash Chatterjee
- See Also:
- Serialized Form
| Fields inherited from class org.apache.struts.taglib.bean.DefineTag |
body, id, messages, name, property, scope, toScope, type, value |
| Methods inherited from class org.apache.struts.taglib.bean.DefineTag |
doAfterBody, getId, getName, getProperty, getScope, getToScope, getType, getValue, release, setId, setName, setProperty, setScope, setToScope, setType, setValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
db
protected String db
- Defines the db Context to use in the tag.
dbToUse
protected String dbToUse
optional
protected String optional
- Boolean value to determine if the setup value is required or optional.
optionalToUse
protected String optionalToUse
schema
protected String schema
- Defines the application schema to lookup for this setup value.
(Optional) If not used, then
com.jcorporate.expresso.core.ExpressoSchema
is used.
schemaToUse
protected String schemaToUse
ExSetupTag
public ExSetupTag()
doStartTag
public int doStartTag()
throws JspException
- Retrieve the required property and expose it as a scripting variable.
- Returns:
- int as defined by the JSP taglib spec
- Throws:
JspException - if a JSP exception has occurred
getDb
public String getDb()
setDb
public void setDb(String newDb)
getOptional
public String getOptional()
setOptional
public void setOptional(String newOptional)
getSchema
public String getSchema()
setSchema
public void setSchema(String newValue)
doEndTag
public int doEndTag()
throws JspException
- Retrieve the required property and expose it as a scripting variable.
- Returns:
- integer as per the jsp taglib spec
- Throws:
JspException - if a JSP exception has occurred
Please see www.jcorporate.com for information about new Expresso releases.