Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

html help

 
Aris Doxakis
Ranch Hand
Posts: 136
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello ,

i have a small problem that i cant find an answer to,
it isnt difficult and im sure its right in front of me but !!

this line suppose to show an image on my page
<img src = '/images/buy.GIF' width = '100' height = '50'>

but actually it doesnt

any help is needfull

thnx in advance
 
Dave Wingate
Ranch Hand
Posts: 262
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Aris,
Can you post the path name of the html file from which you've taken this snippet as well the path name to the gif file you're trying to include?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Aris Doxakis:

<img src = '/images/buy.GIF' width = '100' height = '50'>


When you prepend the '/' to the beginning of a relative link, the browser will omit the contextPath. Remove the slash and make the link relative to the address (in your browser's address window) of the JSP that's being called.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the HTML/Javascript forum...
 
Aris Doxakis
Ranch Hand
Posts: 136
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thnx guys found the answer
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic