|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
com.taggercat.tags.DataFieldValueTag
public class DataFieldValueTag
This tag returns the value of the named field of the data source.
If an
error has occurred (usually preventing a save) on this request/response cycle
then the data from the request, and not from the model is used. Therefore,
the user will not lose the data they just entered when errors occur. If there
is no corresponding parameter on the request, then the value from the data
source is used.

| Field Summary |
|---|
| Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
|---|
EVAL_BODY_AGAIN |
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
|---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
| Constructor Summary | |
|---|---|
DataFieldValueTag()
|
|
| Method Summary | |
|---|---|
int |
doEndTag()
Resets the tags internal state. |
int |
doStartTag()
Sends the value of the specified property to the page. |
int |
getTruncate()
|
void |
setDsn(java.lang.String dsn)
Set the name of the data source this field is a member of. |
void |
setField(java.lang.String field)
Sets the field name attribute. |
void |
setFormat(java.lang.String format)
Sets the format string. |
void |
setNulls(java.lang.String nulls)
Sets the null representation. |
void |
setPreserveHTML(boolean preserveHTML)
Sets the preserveHTML field, set true to retain the original HTML. |
void |
setTruncate(int truncateAt)
|
void |
setUseCodeTableValue(boolean useCodeTableValue)
Sets the useCodeTableValue attribute |
java.lang.String |
toString()
Returns a description of this object. |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DataFieldValueTag()
| Method Detail |
|---|
public int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspException
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspException
public void setDsn(java.lang.String dsn)
dsn - The new dsn valuepublic void setField(java.lang.String field)
field - The new field valuepublic void setFormat(java.lang.String format)
format - The new format valuepublic void setNulls(java.lang.String nulls)
nulls - the new null representationpublic void setUseCodeTableValue(boolean useCodeTableValue)
useCodeTableValue - the new useCodeTableValue statepublic void setPreserveHTML(boolean preserveHTML)
preserveHTML - the new preserveHTML statepublic int getTruncate()
public void setTruncate(int truncateAt)
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||