dear martin,
sorry for the tag. this was a quick and dirty copy paste action!
thanks for quick answer.after two days now of continously permutating over different version i just found out (five minutes ago) that the problem was here :


<tiles-el:importAttribute /> <!-- now the list should be in the pageScope -->

<c-rt:forEach items="navigationElements" var="navigationElement" > <!-- i thought now the list named "navigationElements" would be referenced like this, but it was`nt. see below -->
${navigationElement.url}
.
.
<c-rt:forEach>


VS.

<c-rt:forEach items="${navigationElements}" var="navigationElement" > <!--it works when the attribute is a reference to the object and not only its name. how come?? dont know. should work the other way round i think. -->
${navigationElement.url}
.
.
<c-rt:forEach>


i didn`t get it yet with this jstl and jsp stuff. always surprises!!
best and thanks very much.
martin


Am 07.02.2005 um 15:26 schrieb Martin Gainty:

Martin

where is start tag for <putList> ?

martin-

______________________________________________
(mobile) 001-617-852-7822



From: martin schubert <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <user@struts.apache.org>
To: Struts Users Mailing List <user@struts.apache.org>
Subject: tiles bean attribute in putList not working
Date: Mon, 7 Feb 2005 14:53:15 +0100
MIME-Version: 1.0 (Apple Message framework v619.2)
Received: from mail.apache.org ([209.237.227.199]) by MC8-F25.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Mon, 7 Feb 2005 05:53:56 -0800
Received: (qmail 65263 invoked by uid 500); 7 Feb 2005 13:53:43 -0000
Received: (qmail 65250 invoked by uid 99); 7 Feb 2005 13:53:43 -0000
Received: pass (hermes.apache.org: local policy)
Received: from ns.informatik.uni-ulm.de (HELO mail.informatik.uni-ulm.de) (134.60.68.63) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 07 Feb 2005 05:53:42 -0800
Received: from localhost ([127.0.0.1])by mail.informatik.uni-ulm.de with esmtp (Exim 4.43)id 1Cy9Ke-0004rp-0qfor user@struts.apache.org; Mon, 07 Feb 2005 14:53:40 +0100
Received: from mail.informatik.uni-ulm.de ([127.0.0.1]) by localhost (mail [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18393-07 for <user@struts.apache.org>; Mon, 7 Feb 2005 14:53:39 +0100 (CET)
Received: from p50916ed4.dip.t-dialin.net ([80.145.110.212] helo=[192.168.1.102])by mail.informatik.uni-ulm.de with esmtps (TLSv1:RC4-SHA:128)(Exim 4.43)id 1Cy9Kc-0004rf-Rwfor user@struts.apache.org; Mon, 07 Feb 2005 14:53:39 +0100
X-Message-Info: JGTYoYF78jGFe6N9I5q1RIR+qVKzv6Gv1hSpL1UEImA=
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:[EMAIL PROTECTED]>
List-Subscribe: <mailto:[EMAIL PROTECTED]>
List-Help: <mailto:[EMAIL PROTECTED]>
List-Post: <mailto:user@struts.apache.org>
List-Id: "Struts Users Mailing List" <user.struts.apache.org>
Delivered-To: mailing list user@struts.apache.org
X-ASF-Spam-Status: No, hits=0.0 required=10.0tests=
X-Spam-Check-By: apache.org
X-Mailer: Apple Mail (2.619.2)
X-Virus-Scanned: amavisd-new at informatik.uni-ulm.de
X-Virus-Checked: Checked
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 07 Feb 2005 13:53:56.0831 (UTC) FILETIME=[77B1BEF0:01C50D1C]


hello out there,
i want to submit a list as a parameter specified in a tile definition,
but not with simpleMenuItem element like when i would do if i used the
"add" or "item" elements. i read the tiles.dtd and i found a bean
element can be put into the putList element. so i wrote a new
beanClass Navigation Element and wrote the definition like below.
unfortunatelly when i am in navigationHome.jsp after i imported
tile-attributes with <tiles-el:importAttribute /> the
navigationElements object can`t be found. i tried everything but
didn`t succeed.
anybody knows who tho submit beans ind putList in tiles and make them
available in the page ??


<definition name="navigationHome"
path="/WEB-INF/jsp/navigationHome.jsp">
putList name="navigationElements">
<bean classtype="net.remotedjs.NavigationElement">
 <set-property property="name" value="home"/>
 <set-property property="url" value="/home.jsp" />
 <set-property property="role" value="Guest" />
</bean>
 <bean classtype="net.remotedjs.NavigationElement">
 <set-property property="name" value="broadcasts"/>
 <set-property property="url" value="/Broadcasts.do" />
 <set-property property="role" value="Guest" />
</bean>
</putList>
</definition>

thanks for any help !!!
best
martin


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





Reply via email to