(apologies if you've already seen this but it did not seem to appear on the
list - almost positively user error - but attached again).

Hi Olivier,

I notice, actually in tiles examples, specifically:

        tiles-documentation/layouts/vboxLayout.jsp

... there is a note that "don't use <iterate> tag because it doesn't allow
insert (in JSP1.1)" - there is a workaround though using scriptlet code -
that I think may be what you need.

H.

tiles-documentation/layouts/vboxLayout.jsp
------------------------------------------

<%@ page import="java.util.Iterator"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>

<%-- Layout component
  Render a list of tiles in a vertical column
  @param : list List of names to insert

--%>

<tiles:useAttribute id="list" name="list" classname="java.util.List" />

<%-- Iterate over names.
  We don't use <iterate> tag because it doesn't allow insert (in JSP1.1)
 --%>
<%
Iterator i=list.iterator();
while( i.hasNext() )
  {
  String name= (String)i.next();
%>
<tiles:insert name="<%=name%>" flush="true" />
<br>

<%
  } // end loop
%>

-----Original Message-----
From: ROSSEL Olivier [mailto:[EMAIL PROTECTED]
Sent: 18 February 2003 16:50
To: 'Struts Users Mailing List'
Subject: RE: Sell me on tiles


> Tiles is a major pita to set up but its amazing how much time
> it saves down
> the road.
> I think its awesome just from the fact that u dont need to worry about
> putting all the decorations on a page (nav bar/header/footer
> etc) and only
> need to worry about the meat and potatoes part.
> Aside from using it as a layout manager however, there's a
> few other things
> that it can be helpful for.
> I would suggest going to the main tiles site to see all the
> stuff it can
> add.

A tiles tag can not be inside a logic:iterate.
It is a very painful limitation.

This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

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