mirror of
https://github.com/apache/struts.git
synced 2026-08-31 19:35:40 +00:00
Refactoring struts-default.xml
o moving portlet related action configs to struts-portlet-default.xml git-svn-id: https://svn.apache.org/repos/asf/incubator/webwork2@393184 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -181,22 +181,5 @@
|
||||
|
||||
<default-interceptor-ref name="defaultStack"/>
|
||||
</package>
|
||||
<package name="struts-portlet-default" extends="struts-default">
|
||||
|
||||
<result-types>
|
||||
<result-type name="dispatcher" class="org.apache.struts.action2.portlet.result.PortletResult" default="true"/>
|
||||
<result-type name="freemarker" class="org.apache.struts.action2.views.freemarker.PortletFreemarkerResult"/>
|
||||
<result-type name="velocity" class="org.apache.struts.action2.portlet.result.PortletVelocityResult"/>
|
||||
</result-types>
|
||||
|
||||
<action name="renderDirect" class="org.apache.struts.action2.portlet.dispatcher.DirectRenderFromEventAction">
|
||||
<result name="success">${location}</result>
|
||||
</action>
|
||||
<action name="freemarkerDirect" class="org.apache.struts.action2.portlet.dispatcher.DirectRenderFromEventAction">
|
||||
<result type="freemarker" name="success">${location}</result>
|
||||
</action>
|
||||
<action name="velocityDirect" class="org.apache.struts.action2.portlet.dispatcher.DirectRenderFromEventAction">
|
||||
<result type="velocity" name="success">${location}</result>
|
||||
</action>
|
||||
</package>
|
||||
</xwork>
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
<!DOCTYPE xwork PUBLIC "-//OpenSymphony Group//XWork 1.1.1//EN" "http://www.opensymphony.com/xwork/xwork-1.1.1.dtd">
|
||||
<xwork>
|
||||
<include file="struts-default.xml"/>
|
||||
|
||||
<package name="struts-portlet-default" extends="struts-default">
|
||||
|
||||
<result-types>
|
||||
<result-type name="dispatcher" class="org.apache.struts.action2.portlet.result.PortletResult" default="true"/>
|
||||
<result-type name="freemarker" class="org.apache.struts.action2.views.freemarker.PortletFreemarkerResult"/>
|
||||
<result-type name="velocity" class="org.apache.struts.action2.portlet.result.PortletVelocityResult"/>
|
||||
</result-types>
|
||||
|
||||
<action name="renderDirect" class="org.apache.struts.action2.portlet.dispatcher.DirectRenderFromEventAction">
|
||||
<result name="success">${location}</result>
|
||||
</action>
|
||||
<action name="freemarkerDirect" class="org.apache.struts.action2.portlet.dispatcher.DirectRenderFromEventAction">
|
||||
<result type="freemarker" name="success">${location}</result>
|
||||
</action>
|
||||
<action name="velocityDirect" class="org.apache.struts.action2.portlet.dispatcher.DirectRenderFromEventAction">
|
||||
<result type="velocity" name="success">${location}</result>
|
||||
</action>
|
||||
</package>
|
||||
</xwork>
|
||||
Reference in New Issue
Block a user