org.apache.struts.taglib.bean

Class MessageTag

public class MessageTag extends TagSupport

Custom tag that retrieves an internationalized messages string (with optional parametric replacement) from the ActionResources object stored as a context attribute by our associated ActionServlet implementation.

Version: $Rev: 54929 $ $Date: 2004-10-16 17:38:42 +0100 (Sat, 16 Oct 2004) $

Field Summary
protected Stringarg0
The first optional argument.
protected Stringarg1
The second optional argument.
protected Stringarg2
The third optional argument.
protected Stringarg3
The fourth optional argument.
protected Stringarg4
The fifth optional argument.
protected Stringbundle
The servlet context attribute key for our resources.
protected static LocaledefaultLocale
The default Locale for our server.
protected Stringkey
The message key of the message to be retrieved.
protected StringlocaleKey
The session scope key under which our Locale is stored.
protected static MessageResourcesmessages
The message resources for this package.
protected Stringname
Name of the bean that contains the message key.
protected Stringproperty
Name of the property to be accessed on the specified bean.
protected Stringscope
The scope to be searched to retrieve the specified bean.
Method Summary
intdoStartTag()
Process the start tag.
StringgetArg0()
StringgetArg1()
StringgetArg2()
StringgetArg3()
StringgetArg4()
StringgetBundle()
StringgetKey()
StringgetLocale()
StringgetName()
StringgetProperty()
StringgetScope()
voidrelease()
Release any acquired resources.
voidsetArg0(String arg0)
voidsetArg1(String arg1)
voidsetArg2(String arg2)
voidsetArg3(String arg3)
voidsetArg4(String arg4)
voidsetBundle(String bundle)
voidsetKey(String key)
voidsetLocale(String localeKey)
voidsetName(String name)
voidsetProperty(String property)
voidsetScope(String scope)

Field Detail

arg0

protected String arg0
The first optional argument.

arg1

protected String arg1
The second optional argument.

arg2

protected String arg2
The third optional argument.

arg3

protected String arg3
The fourth optional argument.

arg4

protected String arg4
The fifth optional argument.

bundle

protected String bundle
The servlet context attribute key for our resources.

defaultLocale

protected static final Locale defaultLocale

Deprecated: This will be removed after Struts 1.2.

The default Locale for our server.

key

protected String key
The message key of the message to be retrieved.

localeKey

protected String localeKey
The session scope key under which our Locale is stored.

messages

protected static MessageResources messages
The message resources for this package.

name

protected String name
Name of the bean that contains the message key.

property

protected String property
Name of the property to be accessed on the specified bean.

scope

protected String scope
The scope to be searched to retrieve the specified bean.

Method Detail

doStartTag

public int doStartTag()
Process the start tag.

Throws: JspException if a JSP exception has occurred

getArg0

public String getArg0()

getArg1

public String getArg1()

getArg2

public String getArg2()

getArg3

public String getArg3()

getArg4

public String getArg4()

getBundle

public String getBundle()

getKey

public String getKey()

getLocale

public String getLocale()

getName

public String getName()

getProperty

public String getProperty()

getScope

public String getScope()

release

public void release()
Release any acquired resources.

setArg0

public void setArg0(String arg0)

setArg1

public void setArg1(String arg1)

setArg2

public void setArg2(String arg2)

setArg3

public void setArg3(String arg3)

setArg4

public void setArg4(String arg4)

setBundle

public void setBundle(String bundle)

setKey

public void setKey(String key)

setLocale

public void setLocale(String localeKey)

setName

public void setName(String name)

setProperty

public void setProperty(String property)

setScope

public void setScope(String scope)
Copyright B) 2000-2008 - The Apache Software Foundation