This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
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 Introducing JavaFX 8 Programming this week in the JavaFX 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
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
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.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63334
    
  70

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: 15385
    
    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
 
It's not a secret anymore!