You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Erez Efrati <er...@netmedia.net.il> on 2003/07/25 16:00:10 UTC

in Tiles pages question

I am using Tiles, now, where am I supposed to put the <html:base /> tag.
I would assume inside the mainLayout.jsp, but wouldn't it cause any
problems in other tile pages located in different directories?

Thanks,
Erez



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: in Tiles pages question

Posted by Tin Pham <tt...@learn.senecac.on.ca>.
Hi Erez,

The final rendered page will use for the base url the location of
mainLayout.jsp.

So regardless of where the other tiles are located the browser uses the url
of the mainLayout.jsp to calculate all relative links.

I guess the question is what are you planning to use the html base tag for?

I personally use it so that I can reference links and images using relative
links from the root regardless of my location. So my mainLayout.jsp sits on
the top level of my web folder.




"Erez Efrati" <er...@netmedia.net.il> wrote in message
news:018601c352b5$12e631e0$bc5efea9@Erez...
> I am using Tiles, now, where am I supposed to put the <html:base /> tag.
> I would assume inside the mainLayout.jsp, but wouldn't it cause any
> problems in other tile pages located in different directories?
>
> Thanks,
> Erez




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org