The <html:base /> tag has similar behaviour. It makes an 
absolute URL. But that is what <html:base/> is supposed to do.

But I had hoped that this struts code
    <html:link page="/login.do" ...>
should render html like this:
    <a href="/app/login.do" ..> ...
and not like this:
    <a href="http://server.name/app/login.do" ..>

-Fredrik

> -----Original Message-----
> From: Rob Leland [mailto:[EMAIL PROTECTED]]
> Sent: 01. april 2001 22:31
> To: [EMAIL PROTECTED]
> Subject: Re: LinkTag with page attribute creates an absolute URL
> 
> 
> I am not sure bute have you taken a look at 
> the tag <html:base/> ?
> 
> -Rob
> 
> [EMAIL PROTECTED] wrote:
> > 
> > We are trying to use the link tag to create server relative URI.
> > 
> > But the linktag doesn't create a server relative URI like 
> it says in the
> > documentation.
> >         "... generate a server-relative URI by including 
> the context path"
> > 
> > The link tag actually creates an absolute URL including the 
> scheme and
> > servername, serverport and contextPath.
> > 
> > This gives us problems when we are trying to access our 
> application through
> > a reverse proxy.
> > 
> > The only solution we can think of is to write our own link 
> tag with the
> > behaviour of just adding the context path.
> > 
> > Any ideas?  Am I missing something here?
> > 
> > -Fredrik Wilhelmsen
> 

Reply via email to