Bonjour,
je developpe une application avec struts et qd je lance mon application en tapant l'URL normal , j'obtient ma page jsp.mais qu'on jutilise le .do , là ca bloque , jobtiens le message d'erreur suivant:
message Servlet action n'est pas disponible.
description La ressource demandée (Servlet action n'est pas disponible.) n'est pas disponible.
voila mon fichier 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<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>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>vues/auth.jsp</welcome-file> 
</welcome-file-list>
<taglib>
<taglib-uri>/tags/struts-bean</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>
 
<taglib>
<taglib-uri>/tags/struts-html</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
 
<taglib>
<taglib-uri>/tags/struts-logic</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib>
 
<taglib>
<taglib-uri>/tags/struts-nested</taglib-uri>
<taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
</taglib>
 
<taglib>
<taglib-uri>/tags/struts-tiles</taglib-uri>
<taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
</taglib>
</web-app>
fichier 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
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
<form-beans>
<form-bean
name="frmauth"
type="authBean"
/>
</form-beans>
<action-mappings>
<action
path="/main"
name="frmauth"
scope="session"
validate="true"
input="/accueil.do"
 
type="authAction"
<forward name="administrateur" path="/administrateur.do" />
<forward name="user" path="/user.do" /> 
<forward name="accueil" path="/accueil.do" /> 
/>
<action path="/Welcome" forward="/vues/auth.jsp" /> 
<action
path="/accueil"
parameter="/vues/auth.jsp"
type="org.apache.struts.actions.ForwardAction"
/>
<action
path="/user"
parameter="/vues/user.jsp"
type="org.apache.struts.actions.ForwardAction"
/>
<action
path="/administrateur"
parameter="/vues/administrateur.jsp"
type="org.apache.struts.actions.ForwardAction"
/>
</action-mappings>
<controller processorClass="org.apache.struts.tiles.TilesRequestProcessor" /> 
 
<message-resources parameter="ressources.authressources"/>
 
<plug-in className="org.apache.struts.tiles.TilesPlugin" >
<set-property property="definitions-config"
value="/WEB-INF/tiles-defs.xml" />
 
<!-- Set Module-awareness to true -->
<set-property property="moduleAware" value="true" />
</plug-in>
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property
property="pathnames"
value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
</plug-in>
</struts-config>
et quand j'essaie d'ouvrir la page struts-config.xml avec IE , j'ai l'erreur suivante:
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

A name was started with an invalid character. Error processing resource 'file:///C:/Program Files/Apache Software Foundatio...

<forward name="administrateur" path="/administrateur.do" />
^
Je ne sais pas ou est l'erreur, quelqu'un peut m'aider?