Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 21674 invoked from network); 7 Jul 2006 06:50:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Jul 2006 06:50:51 -0000 Received: (qmail 11937 invoked by uid 500); 7 Jul 2006 06:50:43 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 11455 invoked by uid 500); 7 Jul 2006 06:50:40 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 11444 invoked by uid 99); 7 Jul 2006 06:50:40 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jul 2006 23:50:40 -0700 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=UNRESOLVED_TEMPLATE X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [62.101.90.2] (HELO mail.eng.it) (62.101.90.2) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jul 2006 23:50:39 -0700 Received: from mail.eng.it (polluce-gb [192.168.99.18]) by deliver.antivirus (Postfix) with SMTP id 20E1018034 for ; Fri, 7 Jul 2006 08:50:18 +0200 (CEST) Received: from [192.168.35.75] (unknown [192.168.35.75]) by mail.eng.it (Postfix) with ESMTP id 773EB18031 for ; Fri, 7 Jul 2006 08:50:16 +0200 (CEST) Message-ID: <44AE044F.8090502@tariffenet.it> Date: Fri, 07 Jul 2006 08:50:55 +0200 From: Antonio Petrelli User-Agent: Mozilla Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: Struts Users Mailing List Subject: Re: Tiles: Passing a bean to tiles in a definition file References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.2.0.264296 X-PerlMx-Spam: Gauge=%%XGAUGE%%%%IGAUGE%%, Probability=%%PROB%%, Report='%%HITS%%' X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Dan Langer ha scritto: > From a design POV, it seems odd that a piece > of functionality (the beanName attribute) would be there when invoked > one way (JSP), but not when invoked another (XML definition). > I agree with you, I think that this functionality isn't there for technical reasons, simply because Tiles definitions, when they are loaded, don't know about page scopes, that is needed to resolve beans. Why don't you open a bug ticket for that? > My goal was to create a generic tile (to display a table), and then to pass > it different beans depending on what data I wanted to show. I've created > a definition for the generic one, but I can't think of how to use JSTL > (useBean is what I assume you're suggesting) to allow me to pass the > bean name as an "argument" to the tile when, it's defined using > inheritance in the XML definitions file (my plan was to extend the > generic one for each of the various types of data I was going to > display). > In fact, I meant that you would put, for example, your bean in request scope from your action class and then read it the usual way (with , etc.). Does it solve your problem? Or do you need something different to accomplish your needs? HTH Antonio --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org