Bonjour , ça fait deux heures et j'essaie de faire marcher calendrier qui en principe devrait ressembler à ça :
http://struts.improve-technologies.c...mples/date.jsp

mon fichier config.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
 
<?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 />
  <global-exceptions />
  <global-forwards />
 
<action-mappings>
<action path="/registrationExample" type="com.yourcompany.struts.ActionCalendar"> 
<forward name="success" path="/calendar.jsp"/>
</action>
</action-mappings>
<message-resources parameter="MessageResource" />
<plug-in className="fr.improve.struts.taglib.layout.workflow.LayoutPlugin"/>
</struts-config>
mon action:
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
 
package com.yourcompany.struts;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
 
 
 
public class ActionCalendar extends Action {
 
	public ActionForward execute(ActionMapping mapping,ActionForm form,HttpServletRequest request,HttpServletResponse response)
	throws Exception
	{
 
 
 
 
 
 
		return mapping.findForward("success") ;
 
 
 
 
 
 
 
 
	}
}
mon jsp calendar.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
<%@taglib uri="/WEB-INF/struts-layout.tld" prefix="layout" %>
<html>
 
<head>
<layout:skin/>
<script src="/struts-layout/config/javascript.js"></script>
</head>
 
<body>
 
<layout:form align="center" action="/registrationExample.do" reqCode="create" styleClass="FORM" width="50%">
	<layout:date key="Date" property="username" styleClass="LABEL" mode="E,E,E"/>
</layout:form>
</body>
</html>
Merci D'avance c_nvy