[prev in list] [next in list] [prev in thread] [next in thread]
List: struts-user
Subject: RE: Grid Support in Struts
From: "Cook, Levi" <levi.cook () kraft ! com>
Date: 2001-05-31 16:07:12
[Download RAW message or body]
Not sure I totally followed your requirement, but I think I do something
similar in one of my systems. Basically, its valid to nest iterate tags like
this:
<table>
<logic:iterate name="<someBean>" property="<collectionOfRows>" id="row">
<tr>
<logic:iterate name="row" property="<collectionOfColumns>" id="col">
<td>
<bean:write name="col" property="<whatEver>"/>
</td>
</logic:iterate>
</tr>
</logic:iterate>
</table>
Hopefully, that's somewhat useful..
-- Levi
----- Original Message -----
From: "du Clos, John" <John.duClos@arbitron.com>
To: <struts-user@jakarta.apache.org>
Sent: Thursday, May 31, 2001 9:19 AM
Subject: Grid Support in Struts
>
> We currently have a business requirement to provide a "grid" type of
> interface as part of many web pages in our design. I searched the list
for
> Grid examples or support and did not find anything. Has anyone
implemented
> a psudo grid function using Struts... that would support the following:
>
> col1 col2 col3
> _______ _______ _______
> row 1 |______ | |_______| |______|
> _______ _______ _______
> row 2 |______ | |_______| |______|
> _______ _______ _______
> row 3 |______ | |_______| |______|
> _______ _______ _______
> row 4 |______ | |_______| |______|
>
> .....
> .....
>
> Essentially, i believe we are looking for a solution that supports a
> 2-dimensional array so we can reference it as ObjName(row,col). I read
the
> iterate tag documentation, but did not seem to be well suited for
> multi-dimension. Any suggestions would be greatly appreciated.
>
> The additional business requirement is that we allow user to dynamically
add
> rows and columns... i found something on the list to support dynamically
> adding rows w/iterate and some coding on the jsp, but nothing on dynamic
> columns....
>
> Thanks,
> JD
>
>
>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic