| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 
 | <?xml version="1.0" encoding="ISO-8859-1" ?>
 
<!DOCTYPE struts-config PUBLIC
          "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
          "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd">
 
<struts-config>
 
  <!-- ========== Form Bean Definitions ============ -->
  <form-beans>
  	<form-bean name="loginForm" type="com.sylis.annuaire.web.form.LoginForm" />
  	<form-bean name="rechercheForm" type="com.sylis.annuaire.web.form.RechercheForm" />
  	<form-bean name="resultatForm" type="com.sylis.annuaire.web.form.ResultatForm" />  	
  </form-beans>
 
 
  <!-- ========== Global Forward Definitions ========= -->
  <global-forwards>
    <forward name="recherche" path="/recherche.jsp" /> 
    <forward name="resultat" path="/resultat.jsp" />     
  </global-forwards>
 
 
  <!-- ========== Action Mapping Definitions ======== -->
  <action-mappings>
    <action
    	path="/loginAction"
    	name="loginForm"
    	type="org.springframework.web.struts.DelegatingActionProxy" 
    	scope="session"
    	input="login.jsp"
    	validate="no">   	
      <set-property property = "cancellable" value="true" />  	
      <exception
        key="error.loginIncorrect"
    	path="/login.jsp"
    	scope="request"    	
    	type="com.sylis.annuaire.services.exceptions.LoginException"/>
      <exception
        key="error.passwordIncorrect"
    	path="/login.jsp"
    	scope="request"    	
    	type="com.sylis.annuaire.services.exceptions.PasswordException"/>
    </action>	
    <action
    	path="/resultatAction"
    	name="resultatForm"
    	type="org.springframework.web.struts.DelegatingActionProxy" 
    	scope="request"
    	input="resultat.jsp"
    	validate="no">   	
      <set-property property = "cancellable" value="true" />  	
    </action>	 
 
    <action
    	path="/rechercheAction"
    	name="rechercheForm"
    	type="org.springframework.web.struts.DelegatingActionProxy" 
    	scope="request"
    	input="recherche.jsp"
    	validate="no">    	
      <exception
        key="error.nomObligatoire"
    	path="/recherche.jsp"
    	scope="request"    	
    	type="com.sylis.annuaire.services.exceptions.NomObligatoireException"/>     	    	    	
 
    </action>
  </action-mappings>
 
  <message-resources parameter="langue" null="false" />
 
   <!--  *********************************************** --> 
 <!--  Plug-in SPRING --> 
 <!--  ********************************************** --> 
  <plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
  	<set-property property="contextConfigLocation" value="/WEB-INF/coucheWeb.xml /WEB-INF/coucheService.xml" /> 
  </plug-in>
 
</struts-config> | 
Partager