No action instance for path /action could be created

tortue1344433 Messages postés 3 Date d'inscription samedi 7 avril 2007 Statut Membre Dernière intervention 8 avril 2007 - 7 avril 2007 à 11:47
tortue1344433 Messages postés 3 Date d'inscription samedi 7 avril 2007 Statut Membre Dernière intervention 8 avril 2007 - 8 avril 2007 à 11:50
Bonjour tout le monde

Actuellement je travaille avec struts et hibernate et lorsque je compile j'ai cette erreur qui s'affiche:
No action instance for path /action could be created.

Je ne comprend pas ce que cela signifie.

Je vous remercie de votre aide

3 réponses

cs_DARKSIDIOUS Messages postés 15814 Date d'inscription jeudi 8 août 2002 Statut Membre Dernière intervention 4 mars 2013 130
7 avril 2007 à 12:55
Est-ce que ton fichier struts-config.xml mappe bien les url  comme il faut ? Apparement, dans ton fichier xml, tu dois avoir une ou plusieurs url à renvoyer vers le package action qui n'existe pas...
0
tortue1344433 Messages postés 3 Date d'inscription samedi 7 avril 2007 Statut Membre Dernière intervention 8 avril 2007
8 avril 2007 à 11:50
Je te remercie de ton aide, mais je pense que le mapping est bien fait.


Je vous donne mon fichier struts-config :


<?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>


<data-sources/>





<form-beans type="org.apache.struts.action.ActionFormBean">


<form-bean name="formulaire" type="bean.Form"/>


</form-beans>





<global-exceptions/>


<global-forwards/>














<controller/>





<message-resources null="false" parameter="controle_fr"/>


</struts-config>


Je vous donne également ma jsp:


<%@ taglib uri=
"/WEB-INF/struts-html" prefix=
"html" %>


<%@ taglib uri=
"/WEB-INF/struts-bean" prefix=
"bean" %>


<%@ taglib uri=
"/WEB-INF/struts-logic" prefix=
"logic" %>


<%@ taglib uri=
"/WEB-INF/c" prefix=
"c" %>



<



html:html
><


head
>






<
title
></
title
></


head
><


body
>






<
html:form
action
=

"doaction"
>






<
table
>






<
tr
>






<
td
><
bean:message
key
=

"index.nom"
/></
td
>






<
td
><
html:text
property
=

"nom"
/></
td
>






</
tr
>






<
tr
>






<
td
><
bean:message
key
=

"index.prenom"
/></
td
>






<
td
><
html:text
property
=

"prenom"
/></
td
>






</
tr
>






<
tr
>






<
td
><
bean:message
key
=

"index.age"
/></
td
>






<
td
><
html:text
property
=

"age"
/></
td
>






</
tr
>






<
tr
>






<
td
><
html:submit
property
=

"envoyer"
value
=

"envoyer"
/></
td
>






<
td
><
html:reset
property
=

"annuler"
value
=

"annuler"
/></
td
>






</
tr
>






</
table
>






<
html:errors
/>






</
html:form
>







</



body
></


html:html
>

J'ai du mal à comprendre pourquoi ca ne marche, je vous remercie de votre aide.
0
tortue1344433 Messages postés 3 Date d'inscription samedi 7 avril 2007 Statut Membre Dernière intervention 8 avril 2007
8 avril 2007 à 11:50
Je te remercie de ton aide, mais je pense que le mapping est bien fait.


Je vous donne mon fichier struts-config :


<?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>


<data-sources/>





<form-beans type="org.apache.struts.action.ActionFormBean">


<form-bean name="formulaire" type="bean.Form"/>


</form-beans>





<global-exceptions/>


<global-forwards/>














<controller/>





<message-resources null="false" parameter="controle_fr"/>


</struts-config>


Je vous donne également ma jsp:


<%@ taglib uri=
"/WEB-INF/struts-html" prefix=
"html" %>


<%@ taglib uri=
"/WEB-INF/struts-bean" prefix=
"bean" %>


<%@ taglib uri=
"/WEB-INF/struts-logic" prefix=
"logic" %>


<%@ taglib uri=
"/WEB-INF/c" prefix=
"c" %>



<



html:html
><


head
>






<
title
></
title
></


head
><


body
>






<
html:form
action
=

"doaction"
>






<
table
>






<
tr
>






<
td
><
bean:message
key
=

"index.nom"
/></
td
>






<
td
><
html:text
property
=

"nom"
/></
td
>






</
tr
>






<
tr
>






<
td
><
bean:message
key
=

"index.prenom"
/></
td
>






<
td
><
html:text
property
=

"prenom"
/></
td
>






</
tr
>






<
tr
>






<
td
><
bean:message
key
=

"index.age"
/></
td
>






<
td
><
html:text
property
=

"age"
/></
td
>






</
tr
>






<
tr
>






<
td
><
html:submit
property
=

"envoyer"
value
=

"envoyer"
/></
td
>






<
td
><
html:reset
property
=

"annuler"
value
=

"annuler"
/></
td
>






</
tr
>






</
table
>






<
html:errors
/>






</
html:form
>







</



body
></


html:html
>

J'ai du mal à comprendre pourquoi ca ne marche, je vous remercie de votre aide.
0
Rejoignez-nous