wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Display image in Jsp page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Display image in Jsp page" Watch "Display image in Jsp page" New topic
Author

Display image in Jsp page

Sivakumar Janardhanan
Ranch Hand

Joined: Dec 11, 2008
Posts: 30
Hello All,

I want to show one image in jsp page. i have stored that image in my Local Disk "D Drive".


for e.g




(Actually JSP will call all the stuff from the server side even an image)

Please help me how to show the local disk image file in jsp page




Regards
sivakumar
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41149
    
  45
The image must be in a publicly accessible directory; a path like "D:\..." will not work. Also note that "imgsrc" is not a valid HTML tag name.


Ping & DNS - my free Android networking tools app
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60802
    
  65

I see no JSP dimension to this question at all. Moved to the HTML forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Browser security does not let you view any files that are located on the users computer. In the past this was not true, but in today's day in age with security it is.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Display image in Jsp page
 
Similar Threads
img tag in jsp
JSP page not displaying the image
problem with displaying the image from local disk in jsp page
Writing Image Bytes on Response Stream
Putting an image on JSP