org.apache.taglibs.i18n
Class MessageArgumentTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.apache.taglibs.i18n.MessageArgumentTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag

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

This class implements is used inside a MessageTag to create an ordered list of arguments to use with java.text.MessageFormat.

Examples

  <i18n:getMessage key="test"/>
  <i18n:msgArg value="<%= test %>"/>
  <i18n:msgArg value="<%= test %>"/>
  </i18n:getMessage>
  etc...
  

Author:
Tim Dawson
See Also:
MessageTag, MessageFormat, Serialized Form

Field Summary
 
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
 
Constructor Summary
MessageArgumentTag()
           
 
Method Summary
 void setValue(java.lang.Object argumentValue)
          locate the parent tag and add the argument to the Message's arg list
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, doStartTag, 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
 

Constructor Detail

MessageArgumentTag

public MessageArgumentTag()
Method Detail

setValue

public void setValue(java.lang.Object argumentValue)
              throws javax.servlet.jsp.JspException
locate the parent tag and add the argument to the Message's arg list

Throws:
javax.servlet.jsp.JspException


Copyright ? 2000-2004 The Apache Software Foundation. All Rights Reserved.