You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dale Newfield <Da...@Newfield.org> on 2007/11/14 07:51:02 UTC

Re: [struts] [S2] Recursive

Chris Pratt wrote:
> I have an folder hierarchy that I'm trying to display on a web page,
> but I can't figure out how to get <s:iterate> (or <c:forEach>) to work
> with a structure of unknown depth.  Does anyone know of a technique
> that would allow this?

Create a .tag file that (conditionally) calls itself?

-Dale

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: [struts] [S2] Recursive

Posted by Dave Newton <ne...@yahoo.com>.
I did something similar with tiles that included
themselves; I suppose regular old includes would work
as well.

d.

--- Chris Pratt <th...@gmail.com> wrote:

> On Nov 13, 2007 10:51 PM, Dale Newfield
> <Da...@newfield.org> wrote:
> >
> > Chris Pratt wrote:
> > > I have an folder hierarchy that I'm trying to
> display on a web page,
> > > but I can't figure out how to get <s:iterate>
> (or <c:forEach>) to work
> > > with a structure of unknown depth.  Does anyone
> know of a technique
> > > that would allow this?
> >
> > Create a .tag file that (conditionally) calls
> itself?
> >
> 
> Great idea, and it's an excuse to try my first .tag
> file as well.
> Thanks for the idea.
>   (*Chris*)
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: [struts] [S2] Recursive

Posted by Chris Pratt <th...@gmail.com>.
On Nov 13, 2007 10:51 PM, Dale Newfield <Da...@newfield.org> wrote:
>
> Chris Pratt wrote:
> > I have an folder hierarchy that I'm trying to display on a web page,
> > but I can't figure out how to get <s:iterate> (or <c:forEach>) to work
> > with a structure of unknown depth.  Does anyone know of a technique
> > that would allow this?
>
> Create a .tag file that (conditionally) calls itself?
>

Great idea, and it's an excuse to try my first .tag file as well.
Thanks for the idea.
  (*Chris*)

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org