public abstract class MessageResourcesTool extends Object
Abstract view tool that provides access to Struts' message resources.
Modifier and Type | Field and Description |
---|---|
protected javax.servlet.ServletContext |
application |
protected org.apache.velocity.runtime.log.Log |
LOG |
protected javax.servlet.http.HttpServletRequest |
request |
Constructor and Description |
---|
MessageResourcesTool() |
Modifier and Type | Method and Description |
---|---|
void |
configure(Map params)
Initializes this tool.
|
protected Locale |
getLocale()
Retrieves the
Locale for this request. |
protected org.apache.struts.util.MessageResources |
getResources(String bundle)
Retrieves the specified
MessageResources bundle, or the
application's default MessageResources if no bundle is specified. |
void |
init(Object obj)
Deprecated.
|
protected org.apache.velocity.runtime.log.Log LOG
protected javax.servlet.ServletContext application
protected javax.servlet.http.HttpServletRequest request
@Deprecated public void init(Object obj)
public void configure(Map params)
params
- the Map of configuration parametersIllegalArgumentException
- if the param is not a ViewContextprotected Locale getLocale()
Locale
for this request.protected org.apache.struts.util.MessageResources getResources(String bundle)
MessageResources
bundle, or the
application's default MessageResources if no bundle is specified.Copyright © 2002–2014 Apache Software Foundation. All rights reserved.