|
||||||||||
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.apache.struts.taglib.html.MessagesTag org.apache.strutsel.taglib.html.ELMessagesTag
public class ELMessagesTag
Custom tag that iterates the elements of a message collection. It defaults
to retrieving the messages from Action.ERROR_KEY
, but if the
message attribute is set to true then the messages will be retrieved from
Action.MESSAGE_KEY
. This is an alternative to the default
ErrorsTag
.
This class is a subclass of the class
org.apache.struts.taglib.html.MessagesTag
which provides most
of the described functionality. This subclass allows all attribute values
to be specified as expressions utilizing the JavaServer Pages Standard
Library expression language.
Field Summary |
---|
Fields inherited from class org.apache.struts.taglib.html.MessagesTag |
---|
bundle, footer, header, id, iterator, locale, message, messageResources, name, processed, property |
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
---|
bodyContent |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
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 | |
---|---|
ELMessagesTag()
|
Method Summary | |
---|---|
int |
doStartTag()
Process the start tag. |
String |
getBundleExpr()
Getter method for "bundle" tag attribute. |
String |
getFooterExpr()
Getter method for "footer" tag attribute. |
String |
getHeaderExpr()
Getter method for "header" tag attribute. |
String |
getIdExpr()
Getter method for "id" tag attribute. |
String |
getLocaleExpr()
Getter method for "locale" tag attribute. |
String |
getMessageExpr()
Getter method for "message" tag attribute. |
String |
getNameExpr()
Getter method for "name" tag attribute. |
String |
getPropertyExpr()
Getter method for "property" tag attribute. |
void |
release()
Resets attribute values for tag reuse. |
void |
setBundleExpr(String bundleExpr)
Setter method for "bundle" tag attribute. |
void |
setFooterExpr(String footerExpr)
Setter method for "footer" tag attribute. |
void |
setHeaderExpr(String headerExpr)
Setter method for "header" tag attribute. |
void |
setIdExpr(String idExpr)
Setter method for "id" tag attribute. |
void |
setLocaleExpr(String localeExpr)
Setter method for "locale" tag attribute. |
void |
setMessageExpr(String messageExpr)
Setter method for "message" tag attribute. |
void |
setNameExpr(String nameExpr)
Setter method for "name" tag attribute. |
void |
setPropertyExpr(String propertyExpr)
Setter method for "property" tag attribute. |
Methods inherited from class org.apache.struts.taglib.html.MessagesTag |
---|
doAfterBody, doEndTag, getBundle, getFooter, getHeader, getId, getLocale, getMessage, getName, getProperty, setBundle, setFooter, setHeader, setId, setLocale, setMessage, setName, setProperty |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
---|
doInitBody, getBodyContent, getPreviousOut, setBodyContent |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
findAncestorWithClass, getParent, getValue, getValues, removeValue, 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 |
Constructor Detail |
---|
public ELMessagesTag()
Method Detail |
---|
public String getIdExpr()
public String getBundleExpr()
public String getLocaleExpr()
public String getNameExpr()
public String getPropertyExpr()
public String getHeaderExpr()
public String getFooterExpr()
public String getMessageExpr()
public void setIdExpr(String idExpr)
public void setBundleExpr(String bundleExpr)
public void setLocaleExpr(String localeExpr)
public void setNameExpr(String nameExpr)
public void setPropertyExpr(String propertyExpr)
public void setHeaderExpr(String headerExpr)
public void setFooterExpr(String footerExpr)
public void setMessageExpr(String messageExpr)
public void release()
release
in interface Tag
release
in class MessagesTag
public int doStartTag() throws JspException
doStartTag
in interface Tag
doStartTag
in class MessagesTag
JspException
- if a JSP exception has occurred
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |