[Tomcat] Affichage d'une image sur une JSP
Bonjour,
Je sollicite votre aide car je n'arrive pas a afficher une image sur ma page JSP d'un projet tomcat, avec un code du genre:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
<%@ 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>
Test
<br>
<img src="<%request.getContextPath();%>/Images/hh.jpg" alt="ici image"/>
</body>
</html> |
Sachant que mon dossier Images est dans la racine de mon projet chose pareil à ma page JSP.