|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
org.apache.struts.taglib.MessageTag
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.
Field Summary | |
private java.lang.String |
arg0
The first optional argument. |
private java.lang.String |
arg1
The second optional argument. |
private java.lang.String |
arg2
The third optional argument. |
private java.lang.String |
arg3
The fourth optional argument. |
private java.lang.String |
arg4
The fifth optional argument. |
private java.lang.String |
bundle
The servlet context attribute key for our resources. |
private static java.util.Locale |
defaultLocale
The default Locale for our server. |
private java.lang.String |
key
The message key of the message to be retrieved. |
private java.lang.String |
localeKey
The session scope key under which our Locale is stored. |
private static MessageResources |
messages
The message resources for this package. |
Constructor Summary | |
MessageTag()
Construct a new instance of this tag. |
Method Summary | |
int |
doStartTag()
Process the start tag. |
java.lang.String |
getArg0()
Return the first optional argument. |
java.lang.String |
getArg1()
Return the second optional argument. |
java.lang.String |
getArg2()
Return the third optional argument. |
java.lang.String |
getArg3()
Return the fourth optional argument. |
java.lang.String |
getArg4()
Return the fifth optional argument. |
java.lang.String |
getBundle()
Return the bundle key. |
java.lang.String |
getKey()
Return the message key. |
java.lang.String |
getLocale()
Return the locale key. |
void |
release()
Release any acquired resources. |
void |
setArg0(java.lang.String arg0)
Set the first optional argument. |
void |
setArg1(java.lang.String arg1)
Set the second optional argument. |
void |
setArg2(java.lang.String arg2)
Set the third optional argument. |
void |
setArg3(java.lang.String arg3)
Set the fourth optional argument. |
void |
setArg4(java.lang.String arg4)
Set the fifth optional argument. |
void |
setBundle(java.lang.String bundle)
Set the bundle key. |
void |
setKey(java.lang.String key)
Set the message key. |
void |
setLocale(java.lang.String locale)
Set the locale key. |
Field Detail |
private java.lang.String arg0
private java.lang.String arg1
private java.lang.String arg2
private java.lang.String arg3
private java.lang.String arg4
private java.lang.String bundle
private static final java.util.Locale defaultLocale
private java.lang.String key
private java.lang.String localeKey
private static MessageResources messages
Constructor Detail |
public MessageTag()
Method Detail |
public java.lang.String getArg0()
public void setArg0(java.lang.String arg0)
arg0
- The new optional argumentpublic java.lang.String getArg1()
public void setArg1(java.lang.String arg1)
arg1
- The new optional argumentpublic java.lang.String getArg2()
public void setArg2(java.lang.String arg2)
arg2
- The new optional argumentpublic java.lang.String getArg3()
public void setArg3(java.lang.String arg3)
arg3
- The new optional argumentpublic java.lang.String getArg4()
public void setArg4(java.lang.String arg4)
arg4
- The new optional argumentpublic java.lang.String getBundle()
public void setBundle(java.lang.String bundle)
bundle
- The new bundle key.public java.lang.String getKey()
public void setKey(java.lang.String key)
key
- The new message keypublic java.lang.String getLocale()
public void setLocale(java.lang.String locale)
locale
- The new locale keypublic int doStartTag() throws javax.servlet.jsp.JspException
JspException
- if a JSP exception has occurredpublic void release()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |