org.opensubsystems.core.www
Class MessageListTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.opensubsystems.core.www.MessageListTag
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
public class MessageListTag
- extends javax.servlet.jsp.tagext.TagSupport
Custom tag to generate JavaScript array with list of messages, which should be
displayed on the UI. The result will be two JavaScript arrays. The
arrMessages will contain the messages and the arrMessageTypes will contain
the types of messages (error, info).
- Version:
- $Id: MessageListTag.java,v 1.7 2007/01/07 06:14:09 bastafidli Exp $
- Author:
- Miro Halas
- See Also:
- Serialized Form
- Code reviewer:
- Miro Halas
- Code reviewed:
- 1.4 2006/02/17 06:54:09 bastafidli
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
| 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 |
| 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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageListTag
public MessageListTag()
- Constructor for custom tag.
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
-
- Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag- Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
- Throws:
javax.servlet.jsp.JspException
doEndTag
public int doEndTag()
throws javax.servlet.jsp.JspException
-
- Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag- Overrides:
doEndTag in class javax.servlet.jsp.tagext.TagSupport
- Throws:
javax.servlet.jsp.JspException
generateMessageList
public static java.lang.String generateMessageList(javax.servlet.jsp.PageContext pageContext)
- Generate JavaScript representing list of messages.
- Parameters:
pageContext - - context of the current page
- Returns:
- String - JavaScript representing list of messages
Copyright © 2003 - 2006 OpenSubsystems s.r.o.