webwork / webapps / showcase / src / webapp / WEB-INF / classes / xwork.xml

<!DOCTYPE xwork PUBLIC "-//OpenSymphony Group//XWork 1.1.1//EN" "http://www.opensymphony.com/xwork/xwork-1.1.1.dtd">

<!-- START SNIPPET: xworkSample -->

<xwork>

    <include file="webwork-default.xml" />
    
    <include file="config-browser.xml"/>

    <include file="xwork-continuations.xml"/>

    <include file="xwork-tags.xml"/>
    
    <include file="xwork-validation.xml" />
    
    <include file="xwork-actionchaining.xml" />

    <include file="xwork-ajax.xml" />

    <include file="xwork-fileupload.xml" />

    <include file="xwork-person.xml" />

    <include file="xwork-wait.xml" />

    <include file="xwork-token.xml" />
    
    <include file="xwork-model-driven.xml" />
    
    <include file="xwork-filedownload.xml" />
    
    <include file="xwork-freemarker.xml" />

	<include file="xwork-wizard.xml" />
	
	<!--include file="xwork-sessionInvalidation.xml" /-->
	
	<include file="xwork-flash.xml" />
	
	<include file="xwork-sitemesh.xml" />

    <include file="xwork-i18n.xml" />

    <package name="default" extends="webwork-default">
        <interceptors>
            <interceptor-stack name="crudStack">
                <interceptor-ref name="params" />
                <interceptor-ref name="defaultStack" />
            </interceptor-stack>
        </interceptors>
		
		<default-action-ref name="showcase"/>
		
        <action name="showcase">
            <result>showcase.jsp</result>
        </action>

        <action name="date" class="com.opensymphony.webwork.showcase.DateAction">
            <result name="success">/date.jsp</result>
        </action>

    </package>

    <package name="skill" extends="default" namespace="/skill">
        <default-interceptor-ref name="crudStack"/>

        <action name="list" class="com.opensymphony.webwork.showcase.action.SkillAction" method="list">
            <result>/empmanager/listSkills.jsp</result>
            <interceptor-ref name="defaultStack"/>
        </action>
        <action name="edit" class="com.opensymphony.webwork.showcase.action.SkillAction">
            <result>/empmanager/editSkill.jsp</result>
            <interceptor-ref name="params" />
            <interceptor-ref name="basicStack"/>
        </action>
        <action name="save" class="com.opensymphony.webwork.showcase.action.SkillAction" method="save">
            <result name="input">/empmanager/editSkill.jsp</result>
            <result type="redirect">edit.action?skillName=${currentSkill.name}</result>
        </action>
        <action name="delete" class="com.opensymphony.webwork.showcase.action.SkillAction" method="delete">
            <result name="error">/empmanager/editSkill.jsp</result>
            <result type="redirect">edit.action?skillName=${currentSkill.name}</result>
        </action>
    </package>

    <package name="employee" extends="default" namespace="/employee">
        <default-interceptor-ref name="crudStack"/>

        <action name="list" class="com.opensymphony.webwork.showcase.action.EmployeeAction" method="list">
            <result>/empmanager/listEmployees.jsp</result>
            <interceptor-ref name="basicStack"/>
        </action>
        <action name="edit" class="com.opensymphony.webwork.showcase.action.EmployeeAction">
            <result>/empmanager/editEmployee.jsp</result>
            <interceptor-ref name="crudStack"><param name="validation.excludeMethods">execute</param></interceptor-ref>
        </action>
        <action name="save" class="com.opensymphony.webwork.showcase.action.EmployeeAction" method="save">
            <result name="input">/empmanager/editEmployee.jsp</result>
            <result type="redirect">edit.action?empId=${currentEmployee.empId}</result>
        </action>
        <action name="delete" class="com.opensymphony.webwork.showcase.action.EmployeeAction" method="delete">
            <result name="error">/empmanager/editEmployee.jsp</result>
            <result type="redirect">edit.action?empId=${currentEmployee.empId}</result>
        </action>
    </package>

</xwork>

<!-- END SNIPPET: xworkSample -->
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.