Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Display image in Jsp page

 
Sivakumar Janardhanan
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64990
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I see no JSP dimension to this question at all. Moved to the HTML forum.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic