Bonjour, tout le monde
Je débute en struts te je réalise une petite application : Ajouter un element dans la table personne , rechercher , modifier...
Au début l ajout moi ça marche m&ais quand j ajoute la recherche qd j execute la page d ajout et quand je valide me dirige vers la page d affichage de résultats de la recherche , je pense que mon problème existe au niveau du fichier de configuration de struts : struts-config.xml et voici mon code:
Est ce que je dois renommer <action path="/personne" par autre chose car ce que je constate il me derige vers RecherchePersonne_form.jsp dernière appel
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 <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_3.dtd"> <struts-config> <form-beans type="org.apache.struts.action.ActionFormBean"> <form-bean name="PersonneForm" type="com.struts.data.PersonneForm" /> </form-beans> <action-mappings type="org.apache.struts.action.ActionMapping"> <action path="/personne" input="/Personne_form.jsp" scope="request" name="PersonneForm" type="com.struts.controleur.AjoutPersonnAction"> <forward name="succes" path="/Personne_succes.jsp" redirect="false" /> <forward name="echec" path="/Personne_form.jsp" redirect="false" /> </action> <action path="/personne" input="/RecherchePersonne_form.jsp" scope="request" name="PersonneForm" type="com.struts.controleur.RecherchePersonnAction"> <forward name="succes" path="/RecherchePersonne_succes.jsp" redirect="false" /> <forward name="echec" path="/RecherchePersonne_form.jsp" redirect="false" /> </action> </action-mappings> </struts-config>
Comment je peux résoudre ce prb??
Merci d avance
Partager