salut

j'ai un problème de localisation d'une image dans une application web

en faite sous le dossier :

WebContent j'ai deux dossiers include et images

sous include j'ai une page jsp : banniere.jsp

et sous images j'ai une image : banniere.jpg

le contenu de page banniere.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
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
 
<!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=ISO-8859-1">
<title>Insert title here</title>
</head>
<body style="text-align: center;">
<table width="100%">
<tr>
<td >
 
 
<img src="./images/banniere.jpg" style="width: 100% ; height: 20%;" >
</td></tr>
 
</table>
</body>
</html>

arborescence des dossier est :


-->WebContent
--------------->include
----------------------->banniere.jsp
--------------->images
-----------------------> banniere.jpg

mais le problème est que l’application n'arrive pas à accéder à l'image

Code : Sélectionner tout - Visualiser dans une fenêtre à part
11:05:35,143 INFO  [PortalImpl] Current URL /web/guest/images/banniere.jpg generates exception: null

merci d'avance