Bonjour,

Je suis un débutant en j2ee, actuellement en auto formation en struts.
je travail sur un tutoriel que j'ai trouvé sur ce site, j'ai eu ce problème,
dans le fichier struts-config.xml,
The content of element type "struts-config" must match "(data-sources?,form-beans?,global-exceptions?,global- forwards?,action-mappings?,controller?,message-resources*,plug-in*)" au niveau de la balaise de debut <struts-config>.


fichier struts-config

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
<?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_1.dtd">
 
<struts-config>
	<form-beans>
		<form-bean name="authentificationForm" type="actionform.AuthentificationForm" />
	</form-beans>
	<!-- <global-exceptions> -->
	<!-- <exception key="expired.password" type="app.ExpiredPasswordException" -->
	<!-- path="/changePassword.jsp" /> -->
	<!-- </global-exceptions> -->
 
<!-- <global-forwards> -->
<!-- <forward name="welcome" path="/Welcome.do" /> -->
 
<!-- </global-forwards> -->
 
<action-mappings>
	<!-- <action path="/Welcome" forward="/vues/Welcome.jsp" /> -->
	<action path="/Authentification" type="action.AuthentificationAction"
		name="authentificationForm" scope="request" input="/vues/authentification.jsp"
		validate="true">
		<forward name="erreurs" path="/vues/erreurs.jsp" />
		<forward name="succes" path="/vues/succes.jsp" />
 
	</action>
</action-mappings>
<form-beans>
	<form-bean name="authentificationDynaforms" type="org.apache.struts.action.DynaActionForm">
		<form-property name="identifiant" type="java.lang.String"
			initial="" />
		<form-property name="motdepasse" type="java.lang.String"
			initial="" />
	</form-bean>
</form-beans>
<action-mappings>
	<action path="/AuthentificationDynaforms" name="authentificationDynaforms"
		type="org.apache.struts.actions.ForwardAction" parameter="/pages/bienvenueDynaForms.jsp">
	</action>
</action-mappings>
</struts-config>
Merci pour votre retour.