Source Code‎ > ‎src‎ > ‎

struts.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
    "http://struts.apache.org/dtds/struts-2.0.dtd">

<struts>

    <!-- Enable Dynamic Method Invocation -->
    <constant name="struts.enable.DynamicMethodInvocation" value="true">
    </constant>
    <!-- Application is running in Dev mode and refresh struts.xml on each request -->
    <constant name="struts.devMode" value="true"></constant>

    <package name="defaultModuleTiles" namespace="/" extends="tiles-default">
        <action name="d_*" class="{1}Action" method="input">
            <result name="success" type="tiles">{1}</result>
            <result name="input" type="tiles">{1}</result>
        </action>
    </package>

    <package name="baseModuleTiles" namespace="/base" extends="tiles-default">
        <!-- <interceptors> <interceptor name="FrontCtl" class="in.co.sunrays.proj2.frontctl.LoginInterceptor"></interceptor>
            <interceptor-stack name="ORSStack"> <interceptor-ref name="FrontCtl"></interceptor-ref>
            <interceptor-ref name="defaultStack"></interceptor-ref> </interceptor-stack>
            </interceptors> -->

        <action name="d_*" class="{1}Action" method="input">
            <result name="success" type="tiles">{1}</result>
            <result name="input" type="tiles">{1}</result>
            <result name="Error" type="redirect">d_Error</result>
            <result name="Logout" type="redirect">/auth/d_Login</result>
        </action>

        <action name="s_*" class="{1}Action">
            <result name="success" type="tiles">{1}</result>
            <result name="input" type="tiles">{1}</result>
            <result name="Save" type="tiles">{1}</result>
            <result name="Delete" type="redirect">d_{1}List</result>
            <result name="Cancel" type="redirect">d_{1}List</result>
            <result name="Error" type="redirect">/d_Error</result>
            <result name="Go" type="tiles">{1}</result>
            <result name="Sign In" type="tiles">Welcome</result>
            <result name="Sign Up" type="redirect">/auth/d_User</result>
            <result name="Logout" type="redirect">/auth/d_Login</result>
            <result name="Register" type="redirect">/auth/d_Login</result>
        </action>

    </package>

    <!-- Login, User Registration, and Forget password will be part of authentication
        package -->
    <package name="authenticationModuleTiles" namespace="/auth"
        extends="baseModuleTiles">
    </package>


    <!-- User and Role management will be part of User Package -->
    <package name="userModuleTiles" namespace="/user" extends="baseModuleTiles">
        <!-- <default-interceptor-ref name="ORSStack"></default-interceptor-ref> -->
    </package>


    <!-- College, Student and Marksheet will be part of Marksheet package -->
    <package name="marksheetModuleTiles" namespace="/marksheet"
        extends="baseModuleTiles">
        <!--<default-interceptor-ref name="ORSStack"></default-interceptor-ref> -->
    </package>

    <!-- Base Module for Bootstrap -->

    <package name="btbaseModuleTiles" namespace="/bt" extends="tiles-default">

        <action name="d_*" class="{1}Action" method="input">
            <result name="success" type="tiles">bt.{1}</result>
            <result name="input" type="tiles">bt.{1}</result>
            <result name="Error" type="redirect">d_Error</result>
        </action>

        <action name="s_*" class="{1}Action">
            <result name="success" type="tiles">bt.{1}</result>
            <result name="input" type="tiles">bt.{1}</result>
            <result name="Save" type="tiles">bt.{1}</result>
            <result name="Delete" type="redirect">d_{1}List</result>
            <result name="Cancel" type="redirect">d_{1}List</result>
            <result name="Error" type="redirect">/d_Error</result>
            <result name="Go" type="tiles">bt.{1}</result>
            <result name="Sign In" type="tiles">bt.Welcome</result>
            <result name="Sign Up" type="redirect">/bt/auth/d_User</result>
            <result name="Logout" type="redirect">/bt/auth/d_Login</result>
        </action>

    </package>

    <!-- Login, User Registration, and Forget password will be part of authentication
        package -->
    <package name="btAuthenticationModuleTiles" namespace="/bt/auth"
        extends="btbaseModuleTiles">
    </package>


    <!-- User and Role management will be part of User Package -->
    <package name="btUserModuleTiles" namespace="/bt/user" extends="btbaseModuleTiles">
    </package>


    <!-- College, Student and Marksheet will be part of Marksheet package -->
    <package name="btMarksheetModuleTiles" namespace="/bt/marksheet"
        extends="btbaseModuleTiles">
    </package>

</struts>
Comments