Subversion Repositories bacoAlunos

Rev

Rev 1310 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?xml version="1.0" encoding="UTF-8"?>

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

<struts-config>


    <form-beans>
        <form-bean type="pt.estgp.estgweb.web.form.profile.ProfileForm" name="ProfileForm"/>
    </form-beans>

    <global-exceptions>
    </global-exceptions>

    <global-forwards>
    </global-forwards>


    <action-mappings>



        <action path="/findProfile" forward="page.find.profile"/>



        <action path="/user/findProfile" forward="page.find.profile.from.service.zone"/>



        <action path="/startProfileCode" forward="/profile.do?dispatch=homeCode"/>
        <action path="/startProfile" forward="/profile.do?dispatch=home"/>
        <action path="/profile"
               type="pt.estgp.estgweb.web.controllers.profile.ProfileController"
               name="ProfileForm"
               scope="request"
               parameter="dispatch"
               validate="false"
               input="page.welcome">
            <forward name="home" path="page.profile"/>
        </action>


        <!--Profile-->
        <!--Mudar o perfil da area de pesquisa e servico pelo administrador-->
        <action path="/user/startProfileFromSearchUsers" forward="/user/profileFromSearchUsers.do?dispatch=changeProfile&amp;from=SearchUsers"/>
        <action path="/user/startDeleteProfileFromSearchUsers" forward="/user/profileFromSearchUsers.do?dispatch=delete&amp;from=SearchUsers"/>
        <action path="/user/profileFromSearchUsers"
               type="pt.estgp.estgweb.web.controllers.profile.ProfileController"
               name="ProfileForm"
               scope="request"
               parameter="dispatch"
               validate="false"
               input="page.load.profile.from.searchUsers"><!--tODO sEARCH USERS-->
            <forward name="success" path="page.separators.serviceZone"/>
            <forward name="personalData" path="page.load.profile.from.searchUsers"/>
            <forward name="search" path="page.find.profile.from.searchUsers"/>
            <forward name="from.add.role" path="page.load.profile.from.searchUsers"/>
        </action>




        <!--Mudar o perfil da area de servico pelo administrador-->
        <action path="/user/startProfileFromServiceZone" forward="/user/profileFromServiceZone.do?dispatch=changeProfile&amp;from=ServiceZone"/>
        <action path="/user/startNewUserFromServiceZone" forward="/user/profileFromServiceZone.do?dispatch=newUser&amp;from=ServiceZone"/>
        <action path="/user/startNewStudentFromServiceZone" forward="/user/profileFromServiceZone.do?dispatch=newStudent&amp;from=ServiceZone"/>
        <action path="/user/startNewTeacherFromServiceZone" forward="/user/profileFromServiceZone.do?dispatch=newTeacher&amp;from=ServiceZone"/>
        <action path="/user/profileFromServiceZone"
               type="pt.estgp.estgweb.web.controllers.profile.ProfileController"
               name="ProfileForm"
               scope="request"
               parameter="dispatch"
               validate="false"
               input="page.load.profile.from.service.zone">
            <forward name="success" path="page.separators.serviceZone"/>
            <forward name="personalData" path="page.load.profile.from.service.zone"/>
            <forward name="search" path="page.find.profile.from.service.zone"/>
            <forward name="from.add.role" path="page.load.profile.from.service.zone"/>
        </action>


        <!-- Mudar o perfil pelo proprio utilizador -->
        <action path="/user/startDeleteRecordProfile" forward="/user/profile.do?dispatch=deleteRecord"/>
        <action path="/user/startChangeRecordProfile" forward="/user/profile.do?dispatch=loadEditRecord"/>
        <action path="/user/startCreateRecordProfile" forward="/user/profile.do?dispatch=createRecord"/>
        <action path="/user/startProfileFromHome" forward="/user/profile.do?dispatch=home&amp;from=Home"/>
        <action path="/user/startProfile" forward="/user/profile.do?dispatch=home&amp;from=Home"/>
        <action path="/user/startChangeProfile" forward="/user/profile.do?dispatch=changeProfile"/>
        <action path="/user/startProfileCurriculum" forward="/user/profile.do?dispatch=curriculum"/>
        <action path="/user/startProfileGrades" forward="/user/profile.do?dispatch=grades"/>
        <action path="/user/profile"
               type="pt.estgp.estgweb.web.controllers.profile.ProfileController"
               name="ProfileForm"
               scope="request"
               parameter="dispatch"
               validate="false"
               input="page.profile.personal.data">
            <forward name="success" path="page.separators.profile"/>
            <forward name="search" path="page.find.profile"/>
            <forward name="from.add.role" path="page.profile.personal.data"/>

            <forward name="home" path="page.separators.profile"/>
            <forward name="personalData" path="page.profile.personal.data"/>
            <forward name="curriculum" path="page.profile.curriculum"/>
            <forward name="grades" path="page.profile.grades"/>
        </action>



        <action path="/user/showRoleUsers" forward="page.roles.users"/>
    </action-mappings>

</struts-config>