Bonjour à tous, alors voilà le code de mon fichier struts-config :
J'obtiens le message d'erreur suivant :
Code : 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 <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_3.dtd"> <struts-config> <display-name /> <description /> <form-beans> <form-bean name="alimentForm" type="com.nicolas.struts.form.AlimentForm" /> </form-beans> <global-exceptions /> <global-forwards /> <action-mappings> <action path="/add" type="com.nicolas.struts.action.AddAliment" name="alimentForm" scope="session" validate="true" input="/index.jsp" > <forward name="added" path="/index.jsp" /> </action> <action path="/modify" type="com.nicolas.struts.action.ModifTemp" name="alimentForm" validate="false" scope="session" > <forward name="ok" path="/modif.jsp" /> </action> <action path="/delete" type="com.nicolas.struts.action.DeleteAliment" scope="session" > <forward name="deleted" path="/index.jsp?tab=Suppression" /> </action> <action path="/modified" name="alimentForm" scope="session" validate="true" type="com.nicolas.struts.action.ModifAliment" input="/modif.jsp" > <forward name="success" path="/index.jsp" /> </action> <action path="/AfficherUneInterface" type="com.monapplication.AfficherInterface" > <forward name="succes" path="/pages/interface.jsp" /> </action> <action path="/monAction" type="com.monapplication.MonAction" > <forward name="succes" path="/pages/interface.jsp" /> </action> <action path="/sort" type="fr.improve.struts.taglib.layout.sort.SortAction" scope="request" validate="false"></action> <action path="/treeview" type="fr.improve.struts.taglib.layout.treeview.TreeviewAction" scope="request" validate="false"></action> </action-mappings> <controller processorClass="fr.improve.struts.taglib.layout.workflow.LayoutRequestProcessor" /> <controller processorClass="org.apache.struts.tiles.TilesRequestProcessor"/> <message-resources parameter="com.nicolas.struts.properties.ApplicationResource" /> <message-resources key="language" parameter="com.nicolas.struts.properties.Language" /> <plug-in className="org.apache.struts.tiles.TilesPlugin" > <set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml" /> <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>
En cherchant un peu sur le forum, j'ai lu que cette erreur était dûe au fait que les différentes balises qui composent le fichier doivent suivre un ordre précis, or, j'ai bien l'impression que je respecte cet ordre...The content of element type "struts-config" must match "(display-name?,description?,form-
beans?,global-exceptions?,global-forwards?,action-mappings?,controller?,message-resources*,plug-
in*)".
Est ce que quelqun aurait une idée d'où ça peut venir ?
Merci d'avance![]()
Partager