|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.velocity.tools.struts.MessageResourcesTool
public abstract class MessageResourcesTool
Abstract view tool that provides access to Struts' message resources.
Field Summary | |
---|---|
protected javax.servlet.ServletContext |
application
|
private java.util.Locale |
locale
|
protected org.apache.velocity.runtime.log.Log |
LOG
|
protected javax.servlet.http.HttpServletRequest |
request
|
private org.apache.struts.util.MessageResources |
resources
|
Constructor Summary | |
---|---|
MessageResourcesTool()
|
Method Summary | |
---|---|
void |
configure(java.util.Map params)
Initializes this tool. |
protected java.util.Locale |
getLocale()
Retrieves the Locale for this request. |
protected org.apache.struts.util.MessageResources |
getResources(java.lang.String bundle)
Retrieves the specified MessageResources bundle, or the
application's default MessageResources if no bundle is specified. |
void |
init(java.lang.Object obj)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected org.apache.velocity.runtime.log.Log LOG
protected javax.servlet.ServletContext application
protected javax.servlet.http.HttpServletRequest request
private java.util.Locale locale
private org.apache.struts.util.MessageResources resources
Constructor Detail |
---|
public MessageResourcesTool()
Method Detail |
---|
@Deprecated public void init(java.lang.Object obj)
public void configure(java.util.Map params)
params
- the Map of configuration parameters
java.lang.IllegalArgumentException
- if the param is not a ViewContextprotected java.util.Locale getLocale()
Locale
for this request.
protected org.apache.struts.util.MessageResources getResources(java.lang.String bundle)
MessageResources
bundle, or the
application's default MessageResources if no bundle is specified.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |