Ok! I think I understand your code: in the link, you execute a forward to a new template (extended from the template base) with the tile changed. One question more: do you know if I can, in the Action class, redirect to a template but changing some attribute (like <tiles:insert attribute="menu" />).
Thanks!!!! -----Mensaje original----- De: James Mitchell [mailto:[EMAIL PROTECTED]] Enviado el: miércoles, 04 de septiembre de 2002 13:23 Para: Struts Users Mailing List Asunto: RE: Change only some tile Example: (Using the Struts-Atlanta site) http://www.open-tools.org/struts-atlanta >From my struts-config.xml ------------------------- ... ... <action-mappings> <action path="/index" forward="index.view" unknown="true" /> <action path="/meetings" forward="meetings.view" /> <action path="/sponsors" forward="sponsors.view" /> ... ... >From my tiles-defs.xml ---------------------- ... ... <!-- Doc index page description --> <definition name="index.view" path="/WEB-INF/layout/classicLayout.jsp"> <put name="logo.tile" value="/WEB-INF/jsp/logo.jsp" /> <put name="nav.tile" value="/WEB-INF/jsp/nav.jsp" /> <put name="main.tile" value="/get-main.do" /> <put name="modules.tile" value="/WEB-INF/jsp/modules.jsp" /> <put name="legal.tile" value="/WEB-INF/jsp/legal.jsp" /> <put name="powered.tile" value="/WEB-INF/jsp/powered.jsp" /> </definition> <definition name="meetings.view" extends="index.view" > <put name="main.tile" value="/get-meetings.do" /> </definition> <definition name="sponsors.view" extends="index.view" > <put name="main.tile" value="/get-sponsors.do" /> </definition> ... ... Can you see what's happening? So my nav.jsp looks like this: ------------------------------ <%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/tld/tiles.tld" prefix="tiles" %> <%@ taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/tld/struts-atlanta.tld" prefix="util" %> <html:link page="/index.do"> <bean:message key="global.nav.main"/> </html:link> • <html:link page="/meetings.do"> <bean:message key="global.nav.meetings"/> </html:link> • <html:link page="/sponsors.do"> <bean:message key="global.nav.sponsors"/> </html:link> So, in the end, it looks like the only thing changing is the "main" area of my pages (called by "main.tile") I can send you the complete source code for the project if you like. Hope that helps. James Mitchell Software Engineer\Struts Evangelist Struts-Atlanta, the "Open Minded Developer Network" http://www.open-tools.org/struts-atlanta > -----Original Message----- > From: Miguel Angel Mulero Martinez > [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 04, 2002 7:05 AM > To: Lista de correo Struts > Subject: Change only some tile > > > I've got a page with four tiles. I want that when the user press > a link, the > new page appears only in one of the tiles, and the other remain > unchanged. I > have searched but I didn't found how to do this. Someone could tell me > what's the correct example or how to do this? > > Thanks!! > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>