Bonjour, j' ai le message Missing message for key "welcome.title" quand j' essaie de lancer l' appli example Struts avec l' adresse : "http://localhost:8080/PremierStruts/pages/Welcome.jsp"
et l' erreur "org.apache.jasper.JasperException: Cannot create redirect URL: java.net.MalformedURLException: Cannot retrieve ActionForward named welcome" avec l' url "http://localhost:8080/PremierStruts".

J' ai trouvé un thread similaire sur le forum, mais il n' apporte pas de réponse convenable à mon problème
Je pense que ces erreurs sontbien connues des habitués à Struts, merci d' avance pour votre aide ^^
Quelques extraits de code, demandez moi de compléter si nécessaire :

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
<?xml version="1.0" encoding="ISO-8859-1" ?>
 
<!DOCTYPE struts-config PUBLIC
          "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
          "http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd">
 
<struts-config>
<!-- Form Bean Definitions ...-->
<!-- Action Mapping Definitions -->
    <action-mappings>
        <action
            path="/Welcome"
            forward="/pages/Welcome.jsp">
        </action>
    </action-mappings>
    <controller processorClass="org.apache.struts.action.RequestProcessor"/>
<!-- Message Resources Definitions -->
    <message-resources parameter="MessageResources" />
</struts-config>
Welcome.jsp :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
 
<html:html locale="true">
<head>
<title><bean:message key="welcome.title"/></title>
<html:base/>
</head>
<body bgcolor="white">
...
</body>
</html:html>
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
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?xml version="1.0" encoding="UTF-8"?>
 
<!DOCTYPE web-app
  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
  "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
 
<web-app>
  <display-name>Struts Blank Application</display-name>
  <!-- Standard Action Servlet Configuration (with debugging) -->
  <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>   
 
    <init-param>
      <param-name>application</param-name>
      <param-value>/WEB-INF/src/java/MessageResources.properties</param-value>
    </init-param>
<!-- ... -->
  <!-- Standard Action Servlet Mapping -->
  <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
  </servlet-mapping>
 
 
  <!-- The Usual Welcome File List -->
  <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
  </welcome-file-list>
  <!-- Struts Tag Library Descriptors ...-->
 
</web-app>