Re: references
- From: "Andrew Thompson" <andrewthommo@xxxxxxxxx>
- Date: 29 Aug 2006 22:17:47 -0700
aotemp@xxxxxxxxxxx wrote:
Hi!
I am working with a JSP page that resides in folder "X" in the root,
and includes a .HTML page from the root folder itself.
The my problem is that when it references the HTML file from the root
folder, all of the image links are broken.
Is there any way to correct this problem, that doesn't require a
rewrite of the HTML file from the root folder?
What have you got against editing that one file?
In any case, if you should change your mind, the images
can be referenced form the single HTML by giving either
an absolute image path (full URL), which would break if the
domain is moved, or alternately a 'path from the root'.
E.G. for loading http://www.yourdomain.com/images/logo.png
you can reference it as..
<img src='/images/logo.png'>
...and no matter what HTML/JSP loads that HTML, the images
will be found. Note the first '/', which indicates the root of the
domain.
HTH
Andrew T.
.
- References:
- references
- From: aotemp
- references
- Prev by Date: Re: Application base URL
- Next by Date: Loading of dll file
- Previous by thread: references
- Next by thread: Loading of dll file
- Index(es):
Relevant Pages
|
|