com.opensymphony.webwork.views.freemarker
Class ScopesHashModel

java.lang.Object
  extended byfreemarker.template.WrappingTemplateModel
      extended byfreemarker.template.SimpleHash
          extended bycom.opensymphony.webwork.views.freemarker.ScopesHashModel
All Implemented Interfaces:
Serializable, freemarker.template.TemplateHashModel, freemarker.template.TemplateHashModelEx, freemarker.template.TemplateModel

public class ScopesHashModel
extends freemarker.template.SimpleHash

Simple Hash model that also searches other scopes.

If the key doesn't exist in this hash, this template model tries to resolve the key within the attributes of the following scopes, in the order stated: Request, Session, Servlet Context

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
 
Constructor Summary
ScopesHashModel(freemarker.template.ObjectWrapper objectWrapper, ServletContext context, HttpServletRequest request)
           
 
Method Summary
 freemarker.template.TemplateModel get(String key)
           
 
Methods inherited from class freemarker.template.SimpleHash
copyMap, isEmpty, keys, put, put, putAll, remove, size, synchronizedWrapper, toMap, toString, values
 
Methods inherited from class freemarker.template.WrappingTemplateModel
getDefaultObjectWrapper, getObjectWrapper, setDefaultObjectWrapper, setObjectWrapper, wrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScopesHashModel

public ScopesHashModel(freemarker.template.ObjectWrapper objectWrapper,
                       ServletContext context,
                       HttpServletRequest request)
Method Detail

get

public freemarker.template.TemplateModel get(String key)
                                      throws freemarker.template.TemplateModelException
Throws:
freemarker.template.TemplateModelException

WebWork Project Page