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:
Rainer Hermanns
2006-04-11 11:06:50 +00:00
parent 003f20d54b
commit dec94034a9
2 changed files with 23 additions and 17 deletions
@@ -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>