Bonjour,

J'appelle une page via un systeme de tiles :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
 
<tiles:insert definition="page.template">
	<tiles:put name="body" value="/body/login.jsp" type="page"/>
</tiles:insert>
Ca fonctionne très bien quand ma page login.jsp contient :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
 
<h:outputText value="BODY"></h:outputText>
Mais quand je mets dans login.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="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
 
<html>
	<body>
		<h:form>
 
					<h:outputText value="BODY"></h:outputText>
 
		</h:form>
	</body>
</html>
J'obtiens l'erreur :
[ServletException in:/templates/template.jsp] org/apache/commons/codec/binary/Base64'
Savez-vous pourquoi?

mon template.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
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
 
 
<style>
	.tfooterPanel {text-align: center; width: 100%;}
	.tmainpage    {	width:1000;}
 
	.cmenu    {width:150	 ; vertical-align: top;}
	.cline    {width:1   ; background-color:gray;}
	.ccontext {width:873 ; height:510;vertical-align: top; padding :10 10 10 10; font-size:12;
			  font-family: Arial, Helvetica, sans-serif;}
 
</style>
<html>
	<head>
 
	</head>
	<body>
		<f:view>
			<h:panelGrid border="0" columns="3" 
				id="mainLayout" cellpadding="0" cellspacing="0"
				 columnClasses="cmenu,cline,ccontext">
 
				<f:facet name="header">
					<f:subview id="header">
						<tiles:insert definition="page.header" flush="false" />
					</f:subview>
				</f:facet>
 
				<h:panelGroup id="leftMenu">
						<tiles:insert definition="page.leftMenu" flush="false"/>
				</h:panelGroup>
 
				<h:panelGroup id="verticalLine">
					<h:graphicImage value="/images/strutsstudio.gif" width="1" height="1"/>
				</h:panelGroup>
 
				<h:panelGroup id="pageContext">
						<tiles:insert attribute="body" flush="false"/>
				</h:panelGroup>
 
				<f:facet name="footer">
					<f:subview id="footer">
						<tiles:insert definition="page.footer" flush="false"/>
					</f:subview>
				</f:facet>
 
			</h:panelGrid>
		</f:view>
	</body>	
</html>
Merci!