| Author |
Image not displaying
|
kranthi devarapalem
Greenhorn
Joined: Sep 10, 2012
Posts: 9
|
|
Hi all
in one of my jsp i tried to display a image but it is not displaying the image. i have tried to the same code on html it worked. below is the jsp code and i am using Tomcat. below is the code
<tr align="center" height="80%">
<td align="center">
<img src='E:\Kranthi\eclipse\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\App\newsimages\JrNtr.jpg' alt="image" >
</td>
</tr>
thanks in Advance for the help.
Regards
Kranthi.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56180
|
|
|
You are using a file path for the image rather than a URL. That won;t work on any system but your own.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
kranthi devarapalem
Greenhorn
Joined: Sep 10, 2012
Posts: 9
|
|
|
Thanks for the response. But its not working in my system also
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56180
|
|
Well, as it's the wrong approach in the first place, ditch it and use the URL to the image.
The image URL should be the server-relative path to the image beginning with the context path of the web app. See the JspFaq for details.
|
 |
kranthi devarapalem
Greenhorn
Joined: Sep 10, 2012
Posts: 9
|
|
|
Thanks A Lot it worked. Actually i was getting the path from a column and i am using that in src as that is absolute path it did not work i think.
|
 |
 |
|
|
subject: Image not displaying
|
|
|