filter should be mapped on /* thats why we have the filter.
I don't know why the ../ is generated what is the url that you see in the
browser?
Maybe AlMaw can pitch in a bit.

johan



On 10/18/07, Otan <[EMAIL PROTECTED]> wrote:
>
> I'm using wicket beta 4 release.
>
> Images source path is wrong when my wicket filter is mapped to the url /*
> The reason is because the src path of each images changes into something
> with double dot (..)
>
> Example:
> my wicket filter:
>    <filter>
>        <description> </description>
>        <filter-name>Wicket</filter-name>
>        <filter-class>org.apache.wicket.protocol.http.WicketFilter
> </filter-class>
>        <init-param>
>            <param-name>applicationClassName</param-name>
>            <param-value>fackage.MyApplication</param-value>
>        </init-param>
>    </filter>
>    <filter-mapping>
>        <filter-name>Wicket</filter-name>
>        <url-pattern>/*</url-pattern>
>    </filter-mapping>
>
> the html...
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
> http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> <html xmlns="http://www.w3.org/1999/xhtml"; xmlns:wicket="
> http://wicket.apache.org";>
>    <head>
>        <title>~</title>
>    </head>
>    <body>
>        <div>
>            <img src="images/kulafu.jpg" alt="" />
>        </div>
>    </body>
> </html>
>
>
> then the img tag in the html becomes...
> <img alt="" src="../images/kulafu.jpg"/>
>
> the rendered src path is wrong because of the extra dot-dot-slash. But
> it's
> correct if the wicket filter is mapped with /something/*
>
> If it's not a bug, am I discouraged to map my filter using /* ?
>

Reply via email to