Return-Path: Delivered-To: apmail-struts-dev-archive@www.apache.org Received: (qmail 31367 invoked from network); 2 Jan 2007 15:19:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Jan 2007 15:19:36 -0000 Received: (qmail 14975 invoked by uid 500); 2 Jan 2007 15:19:41 -0000 Delivered-To: apmail-struts-dev-archive@struts.apache.org Received: (qmail 14932 invoked by uid 500); 2 Jan 2007 15:19:40 -0000 Mailing-List: contact dev-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Developers List" Reply-To: "Struts Developers List" Delivered-To: mailing list dev@struts.apache.org Received: (qmail 14921 invoked by uid 99); 2 Jan 2007 15:19:40 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of sstone@constantcontact.com designates 208.198.98.29 as permitted sender) Received: from [208.198.98.29] (HELO svrmail.roving.com) (208.198.98.29) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jan 2007 07:19:38 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: How to access componentDefinition? Date: Tue, 2 Jan 2007 10:18:49 -0500 Message-ID: <3B7C31950DEB8445B24D3FDF991E81BB0E1D2FD2@CORPMAIL1.roving.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How to access componentDefinition? Thread-Index: AccrSpwU1VQtxicjQymlrPUrgpB3HgABFHPAAMyKm5A= From: "Stone, Sam" To: "Struts Developers List" X-Virus-Checked: Checked by ClamAV on apache.org Using the API from Sep 2006 I was able to access externally an attribute from a tiles definition as follows: String sTilesDefName =3D (String) request.getAttribute("tile_name"); TilesContext tilesContext =3D new ServletTilesContext(session.getServletContext(), request, response); ComponentDefinition componentDefinition =3D TilesUtil.getDefinition(sTilesDefName, tilesContext); String sMyAtribute =3D (String) componentDefinition.getAttribute("myAttribute"); I can't quite figure out how to do this using the current Tiles 2 API. Sam --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org For additional commands, e-mail: dev-help@struts.apache.org