|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.jsp.tagext.TagSupport javax.servlet.jsp.tagext.BodyTagSupport org.ujac.web.tag.EvalTag
public class EvalTag
Name: EvalTag
Description: Evaluates the tags body using the expression interpreter.
Field Summary | |
---|---|
protected String |
bean
The bean to access (for convenience). |
protected boolean |
customFormat
Tells, whether a ustom format has been defined or not. |
protected String |
dateFormat
The date format. |
protected String |
doubleFormat
The double format. |
protected String |
integerFormat
The integer format. |
protected String |
timeFormat
The time format. |
protected String |
timestampFormat
The timestamp format. |
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
---|
bodyContent |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
---|
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
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 | |
---|---|
EvalTag()
|
Method Summary | |
---|---|
int |
doAfterBody()
|
int |
doEndTag()
|
void |
doInitBody()
|
int |
doStartTag()
|
Object |
getBeanInstance()
Gets the bean instance according to the bean attribute. |
FormatHelper |
getFormatHelper()
Getter method for the the property formatHelper. |
protected Locale |
getLocale()
Gets the locale from the HTTP request. |
Map |
getProperties()
Getter method for the the property properties. |
TemplateInterpreter |
getTemplateInterpreter()
Getter method for the the property templateInterpreter. |
void |
release()
|
void |
setBean(String bean)
Sets the bean name to access. |
void |
setDateFormat(String format)
Sets the format for printing Date values. |
void |
setDoubleFormat(String format)
Sets the format for printing double values. |
void |
setFormatHelper(FormatHelper formatHelper)
Setter method for the the property formatHelper. |
void |
setIntegerFormat(String format)
Sets the format for printing integer values. |
void |
setTemplateInterpreter(TemplateInterpreter interpreter)
Setter method for the the property templateInterpreter. |
void |
setTimeFormat(String format)
Sets the format for printing Time values. |
void |
setTimestampFormat(String format)
Sets the format for printing Timestamp values. |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
---|
getBodyContent, getPreviousOut, setBodyContent |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
---|
getParent, setPageContext, setParent |
Field Detail |
---|
protected String bean
protected boolean customFormat
protected String integerFormat
protected String doubleFormat
protected String dateFormat
protected String timeFormat
protected String timestampFormat
Constructor Detail |
---|
public EvalTag()
Method Detail |
---|
public void setBean(String bean)
bean
- The name of the default bean.public void setIntegerFormat(String format)
format
- The format string to set.public void setDoubleFormat(String format)
format
- The format string to set.public void setDateFormat(String format)
format
- The format string to set.public void setTimeFormat(String format)
format
- The format string to set.public void setTimestampFormat(String format)
format
- The format string to set.public TemplateInterpreter getTemplateInterpreter()
public void setTemplateInterpreter(TemplateInterpreter interpreter)
interpreter
- The value to set for the property templateInterpreter.public FormatHelper getFormatHelper()
public void setFormatHelper(FormatHelper formatHelper)
formatHelper
- The value to set for the property formatHelper.public Map getProperties()
public Object getBeanInstance()
public int doStartTag() throws JspException
doStartTag
in interface Tag
doStartTag
in class BodyTagSupport
JspException
Tag.doStartTag()
public void doInitBody() throws JspException
doInitBody
in interface BodyTag
doInitBody
in class BodyTagSupport
JspException
BodyTag.doInitBody()
public int doAfterBody() throws JspException
doAfterBody
in interface IterationTag
doAfterBody
in class BodyTagSupport
JspException
IterationTag.doAfterBody()
public int doEndTag() throws JspException
doEndTag
in interface Tag
doEndTag
in class BodyTagSupport
JspException
Tag.doEndTag()
public void release()
release
in interface Tag
release
in class BodyTagSupport
Tag.release()
protected Locale getLocale()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |