Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@apache.org Received: (qmail 62778 invoked from network); 2 Sep 2002 14:50:08 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 2 Sep 2002 14:50:08 -0000 Received: (qmail 27255 invoked by uid 97); 2 Sep 2002 14:50:23 -0000 Delivered-To: qmlist-jakarta-archive-struts-user@jakarta.apache.org Received: (qmail 27224 invoked by uid 97); 2 Sep 2002 14:50:22 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 27209 invoked by uid 98); 2 Sep 2002 14:50:21 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <3D737A25.50805@apache.org> Date: Mon, 02 Sep 2002 16:48:05 +0200 From: Cedric Dumoulin User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.0) Gecko/20020530 X-Accept-Language: fr,en MIME-Version: 1.0 To: Struts Users Mailing List Subject: Re: [Tiles] - Definition inheritence question References: <000501c25286$cdfd9ac0$1f01a8c0@michael> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-MailScanner: Found to be clean X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Michael, When you extend a definition, all attributes from ancestor are inherited, and then overloaded by attributes specified in the new definition. In your case, you overload the 'path' attribute with a new value, disguarding the previous value. The way to go is to have an intermediate tiles (you already have it: plant_status_body.jsp), and a definition using this tiles. Then you use the definition as body. Hope this help, Cedric Michael wrote: >I've been playing with Tiles for several days, getting some simple >examples to work. I've read all the documentation several times but I'm >missing a key part of the definition inheritence I think. Can somebody >please clarify this for me? Here's what I'd like to do: > >I'd like to have a main page that specifies a header, menubar, body, and >footer. Then in the pages of my website, I'd like to insert tiles into >the body. So far it's very easy if I only have one tile to insert into >the body. But I'm really stuck on how to insert two tiles into the same >body. This is what I've tried: > >tiles-defs.xml: > > > path="/jsp/layouts/default_layout.jsp"> > > > > > > extends="default_layout" > path="/jsp/status/plant_status_body.jsp"> > > > > >Default_layout.jsp: > > > > > > > > > > > > > >plant_status_body.jsp: > >
TOP
> > > > >
MIDDLE
> > > >
END
> >This works, but the problem is I don't get the header & footer defined >in the default_layout.jsp. Now I can cut & paste the header & footer >code into plant_status_body.jsp but I think there has to be a better way >to do this. Can someone please tell me if this is possible and how? > >Michael > > >-- >To unsubscribe, e-mail: >For additional commands, e-mail: > > > > -- To unsubscribe, e-mail: For additional commands, e-mail: