bjr
---------------
j'ai cré un projet web en utilisant les tech j2E,le projet contient une formulaire(creationclient.jsp) qui envoi les donné une servlet (creation client),qui fai une ptite verifaction sur les donné reçu,et renvoi les donné+un message a une page (afficherclinet.jsp)....
lorsque je ape l url (locaolhost....creationclient.jsp) ds mon navig,l'erreur 404 est affiché,la console m indique plusieur erreur,une d'eux:
"The servlets named [creationclient] and [servlet.creationclient] are both mapped to the url-pattern [/creationclient] which is not permitted"
voici mon fichier web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlnssi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">
<display-name>tp</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<servlet>
<servlet-name>creationclient</servlet-name>
<servlet-class>servlet.creationclient</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>creationclient</servlet-name>
<url-pattern>/creationclient</url-pattern>
</servlet-mapping>
</web-app>
-----------------------------------------------
merci d maider
Partager