Bonjour,

J'ai lu pas mal de tutorial, cours du site et j'avoue que maintenant je suis un peu perdu. L'application que je souhaite developper est assez modeste et j'ai rencontré pas mâle de beugggg !!!!!.

Alors commençons bien, j'ai bien modifie le fichier struts-config avec la bonne version de Nesmontou que je remercie pour son aide, après cette modification quand je mis l'URL dans le navigateur http://localhost:8080/teststruts/Aut...onDynaforms.do la page qui s'affiche contiens le commentaire " Authentification reaslisé "y'a aucun fourmulaire champs a remplir ???la page c'est toujours http://localhost:8080/teststruts/Aut...onDynaforms.do, c'est bizarre non!!.

Je vous est mis par la suite mes fichier struts-config et la jsp.

1- 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
<?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-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="/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
			path="/AuthentificationDynaforms"
			name="authentificationDynaforms"
			type="org.apache.struts.actions.ForwardAction"
			parameter="/pages/bienvenueDynaForms.jsp">
		</action>
	</action-mappings>
</struts-config>
2- fichier web.xml.

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
<?xml version="1.0" encoding="UTF-8"?>
<web-app>
	<display-name>struts Blank Application</display-name>
	<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>
		<load-on-startup>1</load-on-startup>
	</servlet>
	<servlet-mapping>
		<servlet-name>action</servlet-name>
		<url-pattern>*.do</url-pattern>
	</servlet-mapping>
	<welcome-file-list>
		<welcome-file>/vues/authentification.jsp</welcome-file>
	</welcome-file-list>
</web-app>
2- fichier bienvenueDynaForms.jsp.

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
<%@taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
 
<html:html>
<head>
<title>succes</title>
<html:base>
	<head>
	<body>
		<h3>Authentification reaslisé</h3>
		<bean:write name="authentificationDynaforms" property="identifiant" />
		<br>
		<bean:write name="authentificationDynaforms" property="motdepasse" />
		<br>
	</body>
</html:html>
J'espère que ma demande est claire bien qu'un peu générale. Merci d'avance pour vos eclaircissements .