Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting problem in using <img> tag in jsp  RSS feed

 
Madhura Joshi
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey
somebody help...........

when i m creating any jsp file with <img> tag the image is not displayed
is there any other solution?

i m not using database for image
the image is on my hard disk
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The "src" attribute is probably wrong then. Please tell us where your image is, and how you defined the <img> tag.
 
Stefan Evans
Bartender
Posts: 1836
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Another useful thing to check: right click the image, and get the image location (firefox) or look at the properties (IE) to get the url where the browser thinks the image should be.

Paste the URL into your browser, and then fiddle with it until you find what it should be...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!