Look for "Prizetags" Tree Taglib. It was the most "elegant" way I found to do it... an MVC web tree implementation.

----- Original Message ----- From: "Comain Chen" <[EMAIL PROTECTED]>
To: <user@struts.apache.org>
Sent: Wednesday, November 16, 2005 1:27 PM
Subject: A simple question about web design


Hey, I am a new bie and  the title maybe not approriate.

My problem is :
In a online-shopping site, we may have a tree of product categories, like:
                                                            root
                            book     |        electrical       |
          digital   |      mobile
       novel   commputer life|                            |
                  |
so what is my jsp page be like?   It seems that we can get a category
tree first and
put it in the request. In the display jsp page, we use
<c: for each items="$(category.children)" var="category">
<a href="<c:url value="list.do" <c:param name="cid"
value="$(category.id)/></c:url>
</a>

First, is this approach right or is there more elegant ones ?
Secondly, does struts has any taglib that does this job better?
And lastly, is there any sample projects  that can me useful guidelines?

Wish you give me a hand!
--
Thanks for reading
comain chen

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