The action Looks like this

  Collection depList = getDepartmentList ( );
  Iterator itor = depList.iterator ( );
  while ( itor.hasNext ( ) ) {
      txDepartment department = ( txDepartment ) itor.next ( );
      Collection departments = getOrganizationData ( department.getItem
( ) );
      request.setAttribute ( department.getItem ( ), departments );
      // I can iterate over the departments collection and get the right
information
      // System.out.println ( "Department: " + department.getItem ( ) );
      // Yields Department: Automotive
      // Among others
  }

The starting JSP is

  <table class="content" border="0" cellspacing="10" cellpadding="0">
  <c:forEach var='department' items='${departments}'>
    <tr><td align="center">
        <table class="border" border="0" cellspacing="0" cellpadding="1">
            <tile:insert page='/Department.jsp'>
              <tile:put name='organization' beanName='${department.item}'
beanScope='request'/>
            </tile:insert>
        </table>
    </td></tr>
  <c:forEach>
  </Table>

If I change the put value to 'Automotive'  It works for that case like
              <tile:put name='organization' beanName='Automotive'
beanScope='request'/>
The Department.jsp looks like

<tile importAttribute name='organization'/>

<c:forEach var='org' items='${organization}'>
   <c:out value='${org.manager}'/>
</c:forEach>

The generated error is:
importAttribute : property 'organization' not found in context. Check tag
syntax'

-----Original Message-----
From: David G. Friedman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 20, 2004 8:41 AM
To: Struts Users Mailing List
Subject: RE: Tiles Question


Ray,

Do you have an example of your tile definitions and stub pages I can look
at?

Regards,
David

-----Original Message-----
From: Ray Madigan [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 19, 2004 6:05 PM
To: 'Struts Users Mailing List'
Subject: Tiles Question


I am trying to pass an attribute to a tile as follows:

<tile:insert ...
  <tile:put name='offer' beanName='${foo.name}' beanScope='request'/>
..
</tile:insert>

And
foo.getName ( ).equals ( "Adventure" )
And I have verified a requestAttribute was added.

in the tile when i do

<tile:importAttribute name='offer'/>

I get the message

importAttribute : property 'offer' not found in context. Check tag syntax'

---------------------------------------------------------------------
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]


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

Reply via email to