it.eng.spagobi.presentation.tags
Class SpagoBIMessageTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byit.eng.spagobi.presentation.tags.SpagoBIMessageTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class SpagoBIMessageTag
extends javax.servlet.jsp.tagext.TagSupport

Custom tag that retrieves message using spago facilities

Author:
zoppello
See Also:
Serialized Form

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
SpagoBIMessageTag()
           
 
Method Summary
 int doStartTag()
          Process the start tag.
 java.lang.String getArgs()
           
 java.lang.String getBundle()
           
 java.lang.String getKey()
           
 java.lang.String getMessage(javax.portlet.PortletRequest portReq, java.lang.String code)
          A methd useful to call messages directly into code.
 void release()
          Release any acquired resources.
 void setArgs(java.lang.String args)
           
 void setBundle(java.lang.String bundle)
           
 void setKey(java.lang.String key)
           
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpagoBIMessageTag

public SpagoBIMessageTag()
Method Detail

getArgs

public java.lang.String getArgs()
Returns:
The arguments

setArgs

public void setArgs(java.lang.String args)
Parameters:
args - The arguments to set

getBundle

public java.lang.String getBundle()
Returns:
The servlet context attribute key

setBundle

public void setBundle(java.lang.String bundle)
Parameters:
bundle - The servlet context attribute key to set

getKey

public java.lang.String getKey()
Returns:
The reference key

setKey

public void setKey(java.lang.String key)
Parameters:
key - The key to set

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Process the start tag.

Throws:
javax.servlet.jsp.JspException - if a JSP exception has occurred

release

public void release()
Release any acquired resources.


getMessage

public java.lang.String getMessage(javax.portlet.PortletRequest portReq,
                                   java.lang.String code)
A methd useful to call messages directly into code.

Parameters:
portReq - The portlet request object
code - The message code
Returns:
The message string matching to code