In Tiles you have two other ways to do this. You can have you Action extend TilesAction, make your SQL call within your action, then put/copy the results into the appropriate list of your tile. See tiles definition and Java code example in chapter 5.2.1 in the tilesAdvancedFeatures.pdf I mentioned in a previous post.
In the Tiles definition itself, you can set a controller so some Java class can perform your SQL call and push the data into your list for display into the page. See the tiles definition and JAva code example in chapter 7.3.2 in the tilesAdvancedFeatures.pdf I mentioned in a prevous post. Regards, David -----Original Message----- From: PC Leung [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 19, 2004 11:51 PM To: Struts Users Mailing List Subject: Re: form tiles link from database? The following are defined in tiles-defs.xml <putList> <item value="xxxx" link="yyyy"> Can I change them to variables <item value=${xxxx} link=${yyyy} > and modify values of variables in Action class or another? I have read the links suggested. But I fail to find example code. On Tue, 19 Oct 2004 21:35:36 -0500, Vic Cekvenich <[EMAIL PROTECTED]> wrote: > Yes. > > I put in the List of tiles into scope. > .V > > > > PC Leung wrote: > > <definition name="erp.menu.home" path="/layout/menu.jsp" > > > <put name="title" value="Tiles" /> > > <putList name="items" > > > <item value="xxxxx" link="/yyyyy.jsp"> > > <item value="ERP Home" link="/index.jsp" /> > > ^^^^^^^^^^^^^^^^^^^^ > > Could the link be read from database? > > > > </putList> > > </definition> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]