类 MessageResourcesTool

java.lang.Object
org.apache.velocity.tools.struts.MessageResourcesTool
直接已知子类:
ActionMessagesTool, MessageTool

public abstract class MessageResourcesTool extends Object

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
  • 字段详细资料

    • LOG

      protected org.apache.velocity.runtime.log.Log LOG
    • application

      protected ServletContext application
    • request

      protected HttpServletRequest request
    • locale

      private Locale locale
    • resources

      private MessageResources resources
  • 构造器详细资料

    • MessageResourcesTool

      public MessageResourcesTool()
  • 方法详细资料

    • init

      @Deprecated public void init(Object obj)
      已过时。
    • configure

      public void configure(Map params)
      Initializes this tool.
      参数:
      params - the Map of configuration parameters
      抛出:
      IllegalArgumentException - if the param is not a ViewContext
    • getLocale

      protected Locale getLocale()
      Retrieves the Locale for this request.
      从以下版本开始:
      VelocityTools 2.0
    • getResources

      protected MessageResources getResources(String bundle)
      Retrieves the specified MessageResources bundle, or the application's default MessageResources if no bundle is specified.
      从以下版本开始:
      VelocityTools 1.1