You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Nikolaus Rumm <ni...@mail.kephera.com> on 2000/11/17 02:33:53 UTC

Context and path resolution

Hello,

I am still confused about path resolution.
My directory structure is a s follows:
(the application context is .../webapps/dolores/)

/dolores/
    /html/
        /common
            <header.jsp>
        /intro
        /customer
    /artwork
        <akh.jpg>

The directory <common> contains a jsp-page <header.jsp>.
Header.jsp contains an normal image that should be searched in /dolores/artwork.

The tag is as follows:
<img src="/artwork/akh.jpg" ...>

I tried the following paths...
"/artwork/akh.jpg"
"/dolores/artwork/akh.jpg"
"dolores/artwork/akh.jpg"
"artwork/akh.jpg"
"../../artwork/akh.jpg"
"/../../artwork/akh.jpg"
...but the image could never be found.

Any hints ?

Nikolaus