net.sf.jabb.stdr.dispatcher
Class TemplateDispatcherResult

java.lang.Object
  extended by org.apache.struts2.dispatcher.StrutsResultSupport
      extended by org.apache.struts2.dispatcher.ServletDispatcherResult
          extended by net.sf.jabb.stdr.dispatcher.TemplateDispatcherResult
All Implemented Interfaces:
com.opensymphony.xwork2.Result, Serializable, org.apache.struts2.StrutsStatics

public class TemplateDispatcherResult
extends org.apache.struts2.dispatcher.ServletDispatcherResult

The dispatcher to replace the default dispatcher of Struts2. It is compatible with the default one since it is a subclass of ServletDispatcherResult. Example:

 <result name="success" type="dispatcher">
   <param name="location">foo.jsp</param>
 </result>
 

Author:
James (Zhengmao HU)
See Also:
Serialized Form

Nested Class Summary
static class TemplateDispatcherResult.TemplatePropertyAccessor
          This is the class used to avoid ognl.NoSuchPropertyException when the framework tries to set parameters by ognl.
 
Field Summary
protected  List<String> predefinedResultParam
          These parameter names are pre-defined, they are not defined by user.
static String TEMPLATE_PARAMETER_MAP
          The attribute name in request context to pass the parameters: net_sf_jabb_stdr_templateParameterMap
 
Fields inherited from class org.apache.struts2.dispatcher.StrutsResultSupport
DEFAULT_PARAM
 
Fields inherited from interface org.apache.struts2.StrutsStatics
HTTP_REQUEST, HTTP_RESPONSE, PAGE_CONTEXT, SERVLET_CONTEXT, SERVLET_DISPATCHER, STRUTS_ACTION_TAG_INVOCATION, STRUTS_PORTLET_CONTEXT
 
Constructor Summary
TemplateDispatcherResult()
           
TemplateDispatcherResult(String location)
           
 
Method Summary
 void doExecute(String finalLocation, com.opensymphony.xwork2.ActionInvocation invocation)
           
 
Methods inherited from class org.apache.struts2.dispatcher.ServletDispatcherResult
setUrlHelper
 
Methods inherited from class org.apache.struts2.dispatcher.StrutsResultSupport
conditionalParse, execute, getLastFinalLocation, getLocation, setEncode, setLocation, setParse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

predefinedResultParam

protected List<String> predefinedResultParam
These parameter names are pre-defined, they are not defined by user. They are: location, namespace, encode, parse.


TEMPLATE_PARAMETER_MAP

public static final String TEMPLATE_PARAMETER_MAP
The attribute name in request context to pass the parameters: net_sf_jabb_stdr_templateParameterMap

See Also:
Constant Field Values
Constructor Detail

TemplateDispatcherResult

public TemplateDispatcherResult()

TemplateDispatcherResult

public TemplateDispatcherResult(String location)
Method Detail

doExecute

public void doExecute(String finalLocation,
                      com.opensymphony.xwork2.ActionInvocation invocation)
               throws Exception
Overrides:
doExecute in class org.apache.struts2.dispatcher.ServletDispatcherResult
Throws:
Exception


Copyright © 2012. All Rights Reserved.