Thanks a lot Cedric. I think the best solution is 3. Do you have some Controller Sample code, I'am never have been worked with it.
Any way thanks for your reply. LFung. ----- Original Message ----- From: "Cedric Dumoulin" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, October 03, 2002 1:18 AM Subject: Re: [Tiles] Conditional menu items. Help !!!! > > Hello, > > There is several solutions to have different menu for different users > or profile. > You need to have some logic that select or build the menu according to > the current user profile. > Solution 1: > > * Create an action with one forward for each possible menu. The > action checks the user profile, and call forward to appropriate menu. > * Create one tiles definition for each possible menu > * Associate forwards to definitions > * Call the action each time you need to render the menu > > Solution 2: > > * Create one action that build dynamically the menu definition to be > rendered > * Action push the definition in request session (see examples in > tiles-doc/test) > * Action do its forward, which will use the pushed definition > > Solution 3: > > * Associate a "controller" to your menu definition > * This controller build/modify the list of menu item > > Hope this help, > > Cedric > > LFung wrote: > > >Hi. > > > >I'am using tiles from struts 1.1b1 and I need to add some menu items only for specific users. > > > >Then my action forward take this sample path = forward.common.users.home > > > >this is a define that use some default menu, now for example, some special users use this same menu, in fact the hole template, but with only a few more items in the menu. > > > >Supose I have some bean loeded in the action that tells me if the agregate menu items need to be displayed. > > > >Any idea. > > > >Thanks in advance. > > > >LFung. > > > > > > > > > > -- > 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]>

