Return-Path: Delivered-To: apmail-tiles-users-archive@locus.apache.org Received: (qmail 77256 invoked from network); 14 Nov 2008 10:17:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Nov 2008 10:17:04 -0000 Received: (qmail 40183 invoked by uid 500); 14 Nov 2008 10:17:12 -0000 Delivered-To: apmail-tiles-users-archive@tiles.apache.org Received: (qmail 40161 invoked by uid 500); 14 Nov 2008 10:17:12 -0000 Mailing-List: contact users-help@tiles.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@tiles.apache.org Delivered-To: mailing list users@tiles.apache.org Received: (qmail 40149 invoked by uid 99); 14 Nov 2008 10:17:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Nov 2008 02:17:12 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Nov 2008 10:15:50 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1L0vj8-0007of-GQ for users@tiles.apache.org; Fri, 14 Nov 2008 02:16:34 -0800 Message-ID: <20497807.post@talk.nabble.com> Date: Fri, 14 Nov 2008 02:16:34 -0800 (PST) From: PhoenixelRay To: users@tiles.apache.org Subject: Struts2/Tiles2 OGNL Problem MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: simon_bellaunion@web.de X-Virus-Checked: Checked by ClamAV on apache.org Hi, i have a little question because of a Problem I faced with OGNL in Struts 2. I have tried a lot of things but it didn work.=20 OK. I=C2=B4ve set up a new Struts 2 Project with Tomcat 6.0 and integrated Tiles 2. I want to use the menuing support of tiles.=20 This is the relevant code of the tiles-defs.xml: ------------------------ ... ------------------------ Here I want to define all sections of the main menue. The value of the item property should be a ressource key which I have in the "package.property" file in my project directory (WEB-INF/src/java). =20 The code of the the menue.jsp is: ------------------------ ${item.link} =20
------------------------ This loop should integrate the menu sections.=20 The exception I get is: /tiles/menue.jsp(18,30) According to TLD or attribute directive in tag file, attribute value does not accept any expressions Without it would work.=20 I think the Problem is that the Struts-Tags dont support EL. Is it possible to solve this Problem with OGNL? I dont know how I can access the "item.link" and "item.value" properties with OGNL. Is there a way to use EL with Stuts 2?=20 So many questions. I didnt find a solution in the net for this specific problem and the OGNL documentation is not very helpfull for me. Maybe someone can give me a little clue. Thank you in advance. Best regards=20 Ray --=20 View this message in context: http://www.nabble.com/Struts2-Tiles2-OGNL-Pro= blem-tp20497807p20497807.html Sent from the tiles users mailing list archive at Nabble.com.