Yes, the roles are changing for different menu items on-the-fly. What
do you mean by modify the repository (in the context)?

Thanks

On Thu, 28 Oct 2004 17:46:16 -0600, Matt Raible <[EMAIL PROTECTED]> wrote:
> Ben wrote:
> 
> >I haven't implemented the cache in my app yet and I am using rolesAdapter.
> >
> >When does the MenuPlugIn get executed? Each action?
> >
> >
> The menu repository (a.k.a. menu-config.xml) is loaded into the servlet
> context when your app starts up.  So the MenuPlugIn is only executed
> once - when your app starts.  Are you roles changing for your different
> menu items on-the-fly?  If so, you might need to modify the repository
> (in the context) and put it back in.
> 
> Matt
> 
> 
> 
> >Thanks
> >
> >On Thu, 28 Oct 2004 09:29:46 -0600, Matt Raible <[EMAIL PROTECTED]> wrote:
> >
> >
> >>It sounds like this is more of a application caching the roles issue
> >>than an issue with Struts Menu.  I tried running your tests on AppFuse
> >>(http://demo.raibledesigns.com/appfuse) and it worked fine.
> >>
> >>Matt
> >>
> >>
> >>
> >>On Oct 28, 2004, at 7:45 AM, Ben wrote:
> >>
> >>
> >>
> >>>Hi
> >>>
> >>>My system has two roles: user and admin.
> >>>
> >>>The user role has restricted menu and the admin role has full menu.
> >>>
> >>>When I start up Tomcat and login as admin, I can see the full menu. I
> >>>logout and login as user, I can see the restricted menu. I logout and
> >>>login as admin again and this time I can only see the restricted menu.
> >>>It seems the repository is not reloaded. I am using Struts-menu as the
> >>>plug-in for my Struts-based app.
> >>>
> >>>When and how does the repository get refresh?
> >>>
> >>>I curiously use MenuRepository.reload() in my code and it works as I
> >>>would expected.
> >>>
> >>>Please help and thanks.
> >>>
> >>>
> >>>
> 
> -------------------------------------------------------
> This Newsletter Sponsored by: Macrovision
> For reliable Linux application installations, use the industry's leading
> setup authoring tool, InstallShield X. Learn more and evaluate
> today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/
> _______________________________________________
> struts-menu-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/struts-menu-user
>


-------------------------------------------------------
This Newsletter Sponsored by: Macrovision 
For reliable Linux application installations, use the industry's leading
setup authoring tool, InstallShield X. Learn more and evaluate 
today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/
_______________________________________________
struts-menu-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/struts-menu-user

Reply via email to