struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio Petrelli <brenmcgu...@tariffenet.it>
Subject Re: [tiles] Re: Struts tiles cewolf problem
Date Mon, 04 Sep 2006 14:40:20 GMT
Matts ha scritto:
> Layout1(at web-inf/tiles):
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
>
> <%@ taglib uri="http://struts.apache.org/tags-tiles"
> prefix="tiles" %>
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
>
> <HTML>
>
> <HEAD>
>
> <TITLE><tiles:getAsString name="title"/></TITLE>
>
> <html:base/>

Hehe! I (think I) got it!
This is the "infamous" <html:base /> tag that, with Tiles, uses your 
layout JSP page as the base path, I still don't know why. (Just check 
your produced HTML and look at the <base> tag).
In these cases I suggest to remove the <html:base/> tag and use only 
relative paths.

HTH
Antonio

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


Mime
View raw message