I am trying to use an image in the below index.jsp file in a dynamic web project that I created in Eclipse Indigo IDE. I have added the image under WEB-INF/images/pict1.jpg under WebContent of my project folder. But when I am running in browser, the image is not visible. The text and submit buttons are coming as expected. Am I missing anything? Any idea about how to make the image appear?
Any help will be appreciated.
Below is the code.
Thanks,
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>