Re: references



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.

.



Relevant Pages

  • Re: bye-bye holly hack...
    ... As far as I can see, there is a difference between the DOM and CSS Recommendations regarding what constitutes the "root of the document tree". ... The Document interface represents the entire HTML or XML ...
    (comp.infosystems.www.authoring.stylesheets)
  • RE: Shell prompt
    ... was visible that you was logged in as root. ... skeleton .bashrc did fix it for root? ... missing PS1 set as a normal user? ... [root@aabento html]# ...
    (Fedora)
  • Re: Includes in libraries
    ... Regarding this well-known quote, often attributed to Tim Tyler's famous ... > I don't want lots of includes in my HTML. ... > ...in an HTML file some distance from the root. ...
    (comp.lang.php)
  • RE: Site root folder issue
    ... Put some dummy web.config at the root, because your HTMl pages will not anyway get affected by this web.config and your ASP.NET pages also work fine. ... > We have the html portion of our site in the site root folder on a remote ... > site hosted with a web hosting company. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How to get the page name of itself
    ... That will return the page name *if* it's in the root. ... Public Sub Page_Load ... Dim strURL, arrayURL, pagename ...
    (microsoft.public.dotnet.framework.aspnet)