Subversion Repositories WebE

Rev

Rev 19 | Rev 22 | Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

1
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">

<struts>
        <constant name="struts.devMode" value="false" /> <!-- set to true for more debugging output -->
       
        <!-- User environment -->
        <package name="user" namespace="/user" extends="struts-default">
       
        </package>
       
        <!-- Admin environment -->
        <package name="admin" namespace="/admin" extends="hibernate-default">
                <action name="userAddForm">
                        <result>/admin/userAddForm.jsp</result>
                </action>
               
                <action name="doUserAdd" method="addForm" class="ch.ffhs.webE.action.UserAction">
                        <result name="success" type="redirect">/admin/userAdd.jsp</result>
                </action>
               
                <action name="userList">
                        <result>/admin/userList.jsp</result>
                </action>
        </package>
       
        <!-- Remaining environment of the session-->
        <package name="default" namespace="" extends="hibernate-default">
               
                <!-- Login -->         
                <action name="Login" method="doLogin" class="ch.ffhs.webE.action.LoginAction">
                        <result name="admin" type="redirect">/admin/main.jsp</result>
                        <result name="user" type="redirect">/user/main.jsp</result>
                        <result name="failed" type="redirect">/index.jsp</result>
                </action>
               
                <action name="Logout" method="doLogout" class="ch.ffhs.webE.action.LoginAction">
                        <result name="success" type="redirect">/index.jsp</result>
                </action>
        </package>
</struts>