erreur lors de l'utilisation des Tiles: La servlet action est actuellement indisponible
Bonsoir,
je désire ajouter à mes pages JSP une entète, un menu à gauche et pied de page qui resteront inmodifiable lors de la navigation d'une page à une autre... J'ai opté pour cela pour struts-tiles, je l'ai éssyé sur un exemple qui était fonctionnel, mais après l'ajout des tiles, les actions sont devenus non fonctionnelles!
sauf la page index s'est affiché, mais si je veux navigué à une autre page du menu, je reçoit cette erreur:
org.apache.catalina.core.StandardWrapperValve invoke
INFO: La servlet action est actuellement indisponible
la page index.jsp
Code:
1 2 3 4 5 6 7 8 9 10 11 12
|
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<tiles:insert page="/form/siteLayout.jsp" flush="true">
<tiles:put name="title" value="Tiles Example" />
<tiles:put name="header" value="/form/header.jsp" />
<tiles:put name="navigation" value="/form/navigation.jsp" />
<tiles:put name="content" value="/form/content.jsp" />
<tiles:put name="footer" value="/form/footer.jsp" />
</tiles:insert> |
siteLayout.jsp
Code:
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
|
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Title</title>
</head>
<body>
<table border="1" cellpadding="2" cellspacing="2" align="center">
<tr>
<td height="20%" colspan="2">
<tiles:insert attribute="header" ignore="true" />
</td>
</tr>
<tr>
<td width="20%" height="250">
<tiles:insert attribute="navigation" />
</td>
<td>
<tiles:insert attribute="content" />
</td>
</tr>
<tr>
<td height="20%" colspan="2">
<tiles:insert attribute="footer" />
</td>
</tr>
</table>
</body>
</html> |
header.jsp
Code:
1 2 3 4 5 6 7 8 9 10 11 12
|
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
</head>
<body>
<div align="center" style="font-weight:bold">Gestion de ventes à crédit</div>
</body>
</html> |
navigation.jsp
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
<%@ page language="java"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
Navigation page
<br />
<a href="login.do">Accueil</a>
<br>
<a href="<%=request.getContextPath()%>/listArticles.do?method=prShowAllArticles"> Goto list article page </a>
<br />
<a href="form/bookList.jsp"> Goto book list page </a>
<br />
<br /> |
content.jsp
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<p> sample body content.</p>
</body>
</html> |
footer.jsp
Code:
1 2 3 4 5 6 7 8 9 10 11 12
|
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
</head>
<body>
<div align="center">© Company.com</div>
</body>
</html> |
Please help!!!
c'est très urgent!
Merci d'avance