|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.velocity.tools.struts.MessageResourcesTool
public abstract class MessageResourcesTool
Abstract view tool that provides access to Struts' message resources.
| Field Summary | |
|---|---|
protected ServletContext |
application
|
protected org.apache.velocity.runtime.log.Log |
LOG
|
protected HttpServletRequest |
request
|
| Constructor Summary | |
|---|---|
MessageResourcesTool()
|
|
| Method Summary | |
|---|---|
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. |
| 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 ServletContext application
protected HttpServletRequest request
| Constructor Detail |
|---|
public MessageResourcesTool()
| Method Detail |
|---|
@Deprecated public void init(Object obj)
public void configure(Map params)
params - the Map of configuration parameters
IllegalArgumentException - 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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||