I am developing a dynamic page in that some text and images should be displayed together...!
But before that i had tried to get nevigation page for whole application. In that i am getting same problem, Image is not displayed...!
What i should write in src=" ????? "
I have tried everything
1. /images/Forward.jpg
2. /WEB-INF/images/Forward.jpg
3. /localhost:8081/Car_Dynamic_Demo/images/Forward.jpg
4. D:\study\ADVANCE_JAVA\PrOgRaMs\WEB_APPS\Car_Dynamic_Demo\web\WEB-INF\images\Forward.jpg
But nothing is working for me...!
<%@page import="java.net.URL"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title> </title>
</head>
<body>
<div style="position: fixed ;bottom:550px;left:600px">
<p>Nevigation Bar </p>
<img src=" ??? " />
</div>
</body>
</html>
In directory file i have shown my directory structure
One more query i have...
I had tried simple html code on both browser Chrome and Mozila
But in mozila it didnot work , In chrome it gave Result...!
What can be the reason for that ??
<html>
<body>
<p> Demo Testing...Images...!</p>
<img src="D:/study/ADVANCE_JAVA/PrOgRaMs/WEB_APPS/Car_Dynamic_Demo/web/WEB-INF/images/Forward.jpg" />
</body>
</html>
I am trying to get same thing done by JSP page...!
Why its not working ????