Return-Path: Delivered-To: apmail-tiles-users-archive@minotaur.apache.org Received: (qmail 62361 invoked from network); 15 Sep 2009 16:56:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Sep 2009 16:56:33 -0000 Received: (qmail 480 invoked by uid 500); 15 Sep 2009 16:56:33 -0000 Delivered-To: apmail-tiles-users-archive@tiles.apache.org Received: (qmail 418 invoked by uid 500); 15 Sep 2009 16:56:32 -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 408 invoked by uid 99); 15 Sep 2009 16:56:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Sep 2009 16:56:32 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.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; Tue, 15 Sep 2009 16:56:21 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MnbJw-0002ZU-BX for users@tiles.apache.org; Tue, 15 Sep 2009 09:56:00 -0700 Message-ID: <25457736.post@talk.nabble.com> Date: Tue, 15 Sep 2009 09:56:00 -0700 (PDT) From: brian f To: users@tiles.apache.org Subject: Newbie issue with insertAttribute MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: flanaganb@gsicommerce.com X-Virus-Checked: Checked by ClamAV on apache.org Hi all, brand new to templating in general and Tiles 2. I've followed through the tutorials on the Apache site and, after a bit of wrangling, managed to get the Tiles lib working in Tomcat (version 6). I'm stuck on one last issue though: when I define an attribute inside of a definition with a url string as the value, I can't seem to have it properly interpreted during render to the page. Instead of getting the contents of the url page, I'm seeing the actual url string itself. Here's my setup: WEB-INF/tiles-defs.xml ../tiles/pageTemplates/main.jsp <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %> <tiles:getAsString name="pageTitle"/>

tiles/index.jsp <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %> /tiles/pageTemplates/banner.jsp banner When I load up tiles/index.jsp in my browser, here's what gets displayed: ../tiles/pageTemplates/banner.jsp body content banner I had hoped that the line would output the contents of banner.jsp, but instead it outputs the value of the attribute (in this case, the url). I'm not sure what I'm doing wrong here. If I use the insertTemplate, I get the properly interpreted file rendered out to the page. Am I missing something...? -- View this message in context: http://www.nabble.com/Newbie-issue-with-insertAttribute-tp25457736p25457736.html Sent from the tiles users mailing list archive at Nabble.com.