|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.jsp.tagext.TagSupport org.apache.struts.taglib.bean.MessageTag
public class 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 | |
---|---|
protected String |
arg0
The first optional argument. |
protected String |
arg1
The second optional argument. |
protected String |
arg2
The third optional argument. |
protected String |
arg3
The fourth optional argument. |
protected String |
arg4
The fifth optional argument. |
protected String |
bundle
The servlet context attribute key for our resources. |
protected String |
key
The message key of the message to be retrieved. |
protected String |
localeKey
The session scope key under which our Locale is stored. |
protected static MessageResources |
messages
The message resources for this package. |
protected String |
name
Name of the bean that contains the message key. |
protected String |
property
Name of the property to be accessed on the specified bean. |
protected String |
scope
The scope to be searched to retrieve the specified bean. |
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 | |
---|---|
MessageTag()
|
Method Summary | |
---|---|
int |
doStartTag()
Process the start tag. |
String |
getArg0()
|
String |
getArg1()
|
String |
getArg2()
|
String |
getArg3()
|
String |
getArg4()
|
String |
getBundle()
|
String |
getKey()
|
String |
getLocale()
|
String |
getName()
|
String |
getProperty()
|
String |
getScope()
|
void |
release()
Release any acquired resources. |
void |
setArg0(String arg0)
|
void |
setArg1(String arg1)
|
void |
setArg2(String arg2)
|
void |
setArg3(String arg3)
|
void |
setArg4(String arg4)
|
void |
setBundle(String bundle)
|
void |
setKey(String key)
|
void |
setLocale(String localeKey)
|
void |
setName(String name)
|
void |
setProperty(String property)
|
void |
setScope(String scope)
|
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static MessageResources messages
protected String arg0
protected String arg1
protected String arg2
protected String arg3
protected String arg4
protected String bundle
protected String key
protected String name
protected String property
protected String scope
protected String localeKey
Constructor Detail |
---|
public MessageTag()
Method Detail |
---|
public String getArg0()
public void setArg0(String arg0)
public String getArg1()
public void setArg1(String arg1)
public String getArg2()
public void setArg2(String arg2)
public String getArg3()
public void setArg3(String arg3)
public String getArg4()
public void setArg4(String arg4)
public String getBundle()
public void setBundle(String bundle)
public String getKey()
public void setKey(String key)
public String getName()
public void setName(String name)
public String getProperty()
public void setProperty(String property)
public String getScope()
public void setScope(String scope)
public String getLocale()
public void setLocale(String localeKey)
public int doStartTag() throws JspException
doStartTag
in interface Tag
doStartTag
in class TagSupport
JspException
- if a JSP exception has occurredpublic void release()
release
in interface Tag
release
in class TagSupport
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |