Bonsoir,
mon projet web s'executait a merveille sur un pc , lorsque j'ai voulu l'executer sur mon nouveau pc portable ca déconne le prob c'est que je vais partir en vacc et je dois continuer le travail sur ce projet ds sur laptop
au niveau du navigateur il reffuse de m'afficher/executer les pages .do et m'affiche :
Servlet action non disponible
voila le web.xml:
Code xml : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee   http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
  <servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <init-param>
      <param-name>config</param-name>
      <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <init-param>
      <param-name>debug</param-name>
      <param-value>3</param-value>
    </init-param>
    <init-param>
      <param-name>detail</param-name>
      <param-value>3</param-value>
    </init-param>
    <load-on-startup>0</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
  </servlet-mapping>
</web-app>
struts-config.xml:
Code xml : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">
 
<struts-config>
  <data-sources />
 <form-beans >
    <form-bean name="personnelForm" type="com.gh.presentation.form.PersonnelForm"/>
    <form-bean name="fonctionForm" type="com.gh.presentation.form.FonctionForm"/>
    <form-bean name="typeCongesForm" type="com.gh.presentation.form.TypeCongesForm"/>
    <form-bean name="congesForm" type="com.gh.presentation.form.CongesForm"/>
    <form-bean name="typeAbsenceForm" type="com.gh.presentation.form.TypeAbsenceForm"/>
    <form-bean name="parametresForm" type="com.gh.presentation.form.ParametresForm"/>
    <form-bean name="ficheAbsenceForm" type="com.gh.presentation.form.FicheAbsenceForm"/>
    <form-bean name="fichePaieForm" type="com.gh.presentation.form.FichePaieForm"/>
  </form-beans>
  <global-exceptions />
  <global-forwards />
 
  <action-mappings >
 
  <action
      attribute="parametresForm"
      name="parametresForm"
      path="/parametresAjout"
      scope="request"
      type="com.gh.presentation.action.ParametresAjoutAction" >
       <forward name="success" path="/ok.jsp" />
   </action>
 
  <action 
    attribute="typeCongesForm"
    name="typeCongesForm"
    scope="request"
    path="/typeCongesAjout" 
    type="com.gh.presentation.action.TypeCongesAjoutAction"  > 
     <forward name="success" path="/ok.jsp" />
  </action>
 
 
 <action
      name="congesForm"
      path="/congesAjout"
      scope="request"
      type="com.gh.presentation.action.CongesAjoutAction" >
      <forward name="success" path="/ok.jsp" />
 </action>
 
 <action
      name="congesForm"
      path="/congesInitSaisie"
      scope="request"
      type="com.gh.presentation.action.CongesInitSaisieAction" >
      <forward name="success" path="/congesSaisie.jsp" />
 </action>     
 
 <action
      name="ficheAbsenceForm"
      path="/ficheAbsenceAjout"
      scope="request"
      type="com.gh.presentation.action.FicheAbsenceAjoutAction" >
      <forward name="success" path="/ok.jsp" />
 </action>
 
 <action
      name="ficheAbsenceForm"
      path="/ficheAbsenceInitSaisie"
      scope="request"
      type="com.gh.presentation.action.FicheAbsenceInitSaisieAction" >
      <forward name="success" path="/ficheAbsenceSaisie.jsp" />
 </action>    
 
 
 <action
      name="fichePaieForm"
      path="/fichePaieAjout"
      scope="request"
      type="com.gh.presentation.action.FichePaieAjoutAction" >
      <forward name="success" path="/ok.jsp" />
 </action>
 
 <action
      name="fichePaieForm"
      path="/fichePaieInitSaisie"
      scope="request"
      type="com.gh.presentation.action.FichePaieInitSaisieAction" >
      <forward name="success" path="/fichePaieSaisie.jsp" />
 </action>   
 
 <action 
    attribute="fonctionForm"
    name="fonctionForm"
    scope="session"
    path="/fonctionListe" 
    type="com.gh.presentation.action.FonctionListeAction"  > 
     <forward name="success" path="/fonctionListe.jsp" />
  </action>
 
 
   <action
      attribute="fonctionForm"
      name="fonctionForm"
      path="/fonctionAjout"
      scope="request"
      type="com.gh.presentation.action.FonctionAjoutAction" >
       <forward name="success" path="/ok.jsp" />
   </action>
 
   <action
      name="personnelForm"
      path="/personnelAjout"
      scope="request"
      type="com.gh.presentation.action.PersonnelAjoutAction" >
      <forward name="success" path="/ok.jsp" />
      </action>
 
    <action
      name="personnelForm"
      path="/personnelInitSaisie"
      scope="request"
      type="com.gh.presentation.action.PersonnelInitSaisieAction" >
      <forward name="success" path="/personnelSaisie.jsp" />
      </action>     
 
    <action
      attribute="personnelForm"
      path="/personnelListe"
      scope="request"
      type="com.gh.presentation.action.PersonnelListeAction" >
        <forward name="success" path="/personnelListe.jsp"  />
     </action>
 
 
  </action-mappings>
 
  <message-resources parameter="com.gh.struts.ApplicationResources" />
</struts-config>
Merci d'avance