Well one solution is indeed as Mark mentions, to use exclusively struts tags for linking.
I solved it by placing the template file at the root of my web folder. I notice you're using the html base tag so that would make all your links then relative to the root. Then you require the forward slash then, so to reference an image in /images/a.gif you would use src="images/a.gif" "Ionel Gardais" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I am facing a problem using tiles. > If I have a link in a page which is supposed to be relative to the > holding tile, the effective link is relative to the template JSP file > path provided in the tiles-def.xml > > let say I have two files, template.jsp and link.jsp > > template.jsp > ------------ > <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> > > <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%> > > <html:html locale="true"> > <head> > <title><bean:message > key="page.title"/><%=request.getUserPrincipal().getName()%></title> > <html:base/> > </head> > <body topmargin="0" leftmargin="0" bgcolor="#FFFFFF"> > > <tiles:get name="link"/> > </body> > </html:html> > > link.jsp > -------- > <html:link href="#" > onclick="window.open('choose_date.jsp?for=Debut','date','width=400,height=20 0,toolbar=no,location=no,menubar=no');">click > the link</html:link> > > tile-def.xml > ------------ > <tiles-definitions> > <definition name=".main" path="/template.jsp"> > <put name="link" value="/link.jsp"/> > </definition> > </tiles-definitions> > > When I try to click the link declared in link.jsp, it is relative to > template.jsp instead of link.jsp which is very problematic to me. > > Is there a solution to this ? > > thanks, > ionel --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

