You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by Bjørn Vidar Remme <bv...@gmail.com> on 2005/05/26 07:55:52 UTC

Re: Jetspeed image link error

Hi, 

this is a bug in WEB-INF/templates/vm/layouts/html/default.vm.

Changes this: 
<html>
  <head>
    <base href="$clink.External">
  
to this:

<html>
  <head>
    <base href="$clink.setURI("").External">
  
Note the new setURI(""). 
I have experienced the exact same thing. The problem seems to be reuse
of the object behind $clink (probably a pooled object, which is a good
thing). By setting the URI to "" the base ref will be correct  (if you
view the html source when the problem occurs you will see that the
base ref is wrong).
 
- Bjørn Vidar  

On 4/16/05, Arvin Lu <ar...@gmail.com> wrote:
> After click serval links in Jetspeed page, all images on page can't
> display. (=> "X")
> 
> browser html source:
> ----------------------------
> <tr>
>    <td width="170" align="right" valign="middle"><img
> src="images/logo.jpg" width="160" height="30"></td>
>    <td width="330">&nbsp;</td>
>    <td width="500" align="right" valign="bottom"></td>
> </tr>
> 
> browser image link
> ------------------------
> http://test.com:8080/myapp/portal/images/images/logo.jpg
> 
> !! it should be
> "http://test.com:8080/myapp/portal/images/logo.jpg"
> 
> why?
> 
> 
> Jetspeed 1.6
> Tomcat 5.0.28  , 5.5.54
> OS:Fedora Core 3
> Browser : IE , Moliza
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org