We are currently implementing a custom solution to this very problem. We use tiles for our templates and have contextual information that we want for every page. Right now we are considering crumb trails, help keys, and permissions levels. This information needs localized. Our current solution is to extend org.apache.struts.tiles.ActionComponentServlet. We will add other config file that matches tiles-config (we could hack into the tiles-config layout but fear losing compatibility). This file will be 'digested', creating our site object tree. We will then intercept the ActionServlet's dispatching and insert the proper information in request scope. This allows us to extract page formatting/modeling information from the Action code.
If anyone has already done this, or has a better idea, let me know. Otherwise we will proceed with this. Jon -----Original Message----- From: James Mitchell [mailto:[EMAIL PROTECTED]] Sent: Monday, May 06, 2002 11:43 AM To: Struts Users Mailing List Subject: RE: breadcrumbs Can you configure this to support dynamic trails (n-level deep) such as you might find in a tree-like structure? Render a trail like this: Languages / Java / Frameworks / Struts Currently it would be hard-coded as such: Web page Title: crumbs tag example <br><br> <layout:crumbs styleClass="CRUMBS" separator="/"> <layout:crumb key="crumbs.home" link="/index.do"/> <layout:crumb key="crumbs.languages" link="/languages.do"/> <layout:crumb key="crumbs.frameworks" link="/frameworks.do"/> <layout:crumb key="crumbs.struts"/> </layout:crumbs> <br> If I stored categories of information in my database like this: ID ParentID Category Link -- -------- ----------- -------------------------------------------- 1 (null) Languages (null) 2 1 Java (null) 3 1 C# (null) 4 2 Frameworks (null) 5 2 Struts http://jakarta.apache.org/struts/index.html 6 2 Cocoon http://xml.apache.org/cocoon/index.html Then used nested beans in my ActionForm.....(Implementation of this is usually done 11 different ways if you ask 10 different developers ;) Is there any way to handle this dynamically so that if I changed data to "insert" a new category, then I would NOT have to make code and/or configuration changes? JM > -----Original Message----- > From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]] > Sent: Monday, May 06, 2002 1:10 PM > To: [EMAIL PROTECTED] > Subject: Re: breadcrumbs > > > Subject: Re: breadcrumbs > From: "Anand Jayaraman" <[EMAIL PROTECTED]> > === > Check this out http://struts.application-servers.com/crumbs.html > > "Charles Brault" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED]... > > Is there a Struts compatible tag available for building a breadcrumb > trail? > > > > > > -- > > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

