I have tried just about everything and I wonder why this is so difficult. I
must be missing something. I tried putting in <tiles:importAttribute
name="quote"/> or <tiles:importAttribute/> in various combinations in all of
my files and even tried adding quote as a property in my tiles xml
definitions. If is specify quote I get "Error - tag importAttribute :
property 'quote' not found in context. Check tag syntax". Where should I
place <tiles:importAttribute name="quote"/> and is this all that is
required. I just want to be able to make beans in my loop available to the
tiles I am calling inside the loop. I am really starting to like tiles, but
I cannot seem to get over this problem.
<c:forEach var="quote" items="${quoteForm.quoteValues}">
<!-- no tile used -->
<table>
<tr>
<td>${quote.offerPriceLightValue.sizeValue.size}</td>
</tr>
</table>
<!-- tile attempt to wrap with holder for delineation -->
<tiles:insert definition=".quote.list.item" flush="false">
<tiles:put name="quote" beanName="quote"/>
</tiles:insert>
</c:forEach>
I would like to define the following tile definition:
<definition extends=".table.holder" name=".quote">
<put name="content" value="/quote.jsp"/>
</definition>
And have quote.jsp as follows:
<table>
<tr>
<td>${quote.offerPriceLightValue.sizeValue.size}</td>
</tr>
</table>
Thank you for your time,
Jason Long
CEO and Chief Software Engineer
BS Physics, MS Chemical Engineering
http://www.supernovasoftware.com
-----Original Message-----
From: Brian Moseley [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 17, 2005 7:07 PM
To: Struts Users Mailing List
Subject: Re: Tiles scope headache assistance needed.
Jason Long wrote:
> I switched my code to the following jstl tags as suggested. The first
part
> works with no problem, but I get no output from the tile attempt except
for
> the layout being applied with the word "testing". Do I need to use
> <tile:importAttribute/> or some other tag to make the quote bean
accessible
> from the tile?
yes: <tiles:importAttribute name="quote"/>
> <c:forEach var="quote" items="${quoteForm.quoteValues}">
> <!-- no tile used -->
> <table>
> <tr>
> <td>
> <c:out value="${quote.offerPriceLightValue.sizeValue.size}"/>
note that in a servlet 2.4/jsp 2.0 webapp you don't even
have to use c:out. you can just do ${quote.offer...}.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]