File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes html help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "html help" Watch "html help" New topic
Author

html help

Aris Doxakis
Ranch Hand

Joined: Dec 05, 2004
Posts: 136

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

Joined: Mar 26, 2002
Posts: 262
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?


Fun programming etcetera!
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

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.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Moving to the HTML/Javascript forum...


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Aris Doxakis
Ranch Hand

Joined: Dec 05, 2004
Posts: 136

thnx guys found the answer
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: html help