类 MessageResourcesTool
java.lang.Object
org.apache.velocity.tools.struts.MessageResourcesTool
- 直接已知子类:
ActionMessagesTool
,MessageTool
Abstract view tool that provides access to Struts' message resources.
- 从以下版本开始:
- VelocityTools 1.1
- 版本:
- $Id: MessageResourcesTool.java 595822 2007-11-16 21:07:51Z nbubna $
- 作者:
- Nathan Bubna
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
Initializes this tool.protected Locale
Retrieves theLocale
for this request.protected MessageResources
getResources
(String bundle) Retrieves the specifiedMessageResources
bundle, or the application's default MessageResources if no bundle is specified.void
已过时。
-
字段详细资料
-
LOG
protected org.apache.velocity.runtime.log.Log LOG -
application
protected ServletContext application -
request
protected HttpServletRequest request -
locale
-
resources
private MessageResources resources
-
-
构造器详细资料
-
MessageResourcesTool
public MessageResourcesTool()
-
-
方法详细资料
-
init
已过时。 -
configure
Initializes this tool.- 参数:
params
- the Map of configuration parameters- 抛出:
IllegalArgumentException
- if the param is not a ViewContext
-
getLocale
Retrieves theLocale
for this request.- 从以下版本开始:
- VelocityTools 2.0
-
getResources
Retrieves the specifiedMessageResources
bundle, or the application's default MessageResources if no bundle is specified.- 从以下版本开始:
- VelocityTools 1.1
-