| javax.servlet.jsp.tagext.BodyTagSupport com.sun.portal.wireless.taglibs.util.MsgFmtTag
MsgFmtTag | public class MsgFmtTag extends BodyTagSupport (Code) | | MsgFmtTag performs formatting of message which is
equivalent to MessageFormat class in java
This class allows the arguments to be the JSP tag and
they can be evaluated independently. The body of the
tag should be embedded in the MessageFragment Tag. each
fragment tag has unique id. The sequence of the format
is defined in a resource bundle referred in catalog
and key attribute. It can be used to reorder firstname, lastname
in different locales
Any messages/tags that are not embedded in Fragment tag will
be ignored.
author: senthils |
Method Summary | |
public void | addFragment(String id, String message) | public int | doAfterBody() This method is called after the JSP engine processes the body content of the tag.
EVAL_BODY_AGAIN if the JSP engine should evaluate the tag body again, otherwise return SKIP_BODY.This method is automatically generated. | public int | doEndTag() This method is called after the JSP engine finished processing the tag.
EVAL_PAGE if the JSP engine should continue evaluating the JSP page, otherwise return SKIP_PAGE.This method is automatically generated. | public int | doStartTag() This method is called when the JSP engine encounters the start tag,
after the attributes are processed.
Scripting variables (if any) have their values set here.
EVAL_BODY_BUFFERED if the JSP engine should evaluate the tag body, otherwise return SKIP_BODY.This method is automatically generated. | public void | release() | public void | setCatalog(java.lang.String value) Setter for the catalog attribute. | public void | setKey(java.lang.String value) Setter for the key attribute. |
MsgFmtTag | public MsgFmtTag()(Code) | | Creates a new instance of MsgFmtTag
|
doAfterBody | public int doAfterBody() throws JspException(Code) | | This method is called after the JSP engine processes the body content of the tag.
EVAL_BODY_AGAIN if the JSP engine should evaluate the tag body again, otherwise return SKIP_BODY.This method is automatically generated. Do not modify this method.Instead, modify the methods that this method calls. |
doEndTag | public int doEndTag() throws JspException, JspException(Code) | | This method is called after the JSP engine finished processing the tag.
EVAL_PAGE if the JSP engine should continue evaluating the JSP page, otherwise return SKIP_PAGE.This method is automatically generated. Do not modify this method.Instead, modify the methods that this method calls. |
doStartTag | public int doStartTag() throws JspException(Code) | | This method is called when the JSP engine encounters the start tag,
after the attributes are processed.
Scripting variables (if any) have their values set here.
EVAL_BODY_BUFFERED if the JSP engine should evaluate the tag body, otherwise return SKIP_BODY.This method is automatically generated. Do not modify this method.Instead, modify the methods that this method calls. |
release | public void release()(Code) | | |
|
|