Jpg image not showing in jsp dynamic web project

I am trying to use the image in the index.jsp file below in a dynamic web project that I created in the Eclipse Indigo IDE. I added an image under WEB-INF / images / pict1.jpg in the WebContent section of my project folder. But when I run in the browser, the image is not visible. The text input and send buttons do as expected. Did I miss something? Any idea on how to create an image?

Any help would be appreciated. Below is the code.

Thank,

Somnath

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>

<html> 
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

<c:import url="/WEB-INF/javascript/index.js" />

<title>My Page</title>
</head>
<body>
<img alt="picture1" src="images/pict1.jpg">
<table border="0">
<tr><td valign="top">
<h1>Continue</h1></td><td><input type="submit"></td></tr>
<tr><td valign="top">
<h1>Continue</h1></td><td><input type="submit"></td></tr>
</table>

</body>
</html>
+5
source share
2 answers

image 'src' -. WEB-INF. "images" "WebContent" .

WEB-INF , . jsps WebContent.

+11

Oracle:

WEB-INF . , WEB-INF. .

, WEB-INF, URL-. Eclipse, pict1.jpg WebContent/images, JSP .

+2

All Articles