Hi Ben,

> > I think the ViewContext itself is somewhat like PageContext.
> I am using ViewContext.
Then I guess you already know about the #getRequest(), #getResponse(),
and so on methods.

> > By "initialize", what do you mean?
> I mean the instance gets created on each request.
Ah, then you should put your tool in request scope.  See
  http://jakarta.apache.org/velocity/tools/view/index.html#Toolbox%20Configuration
about tool scopes.

> In one session, I login as admin and see the full menu. In another
> session I login as normal user and see the restricted menu. I refresh
> the page in the admin user session and see the restricited menu (not
> the full menu).
Could it be that your browser is using the authentication information
for the restricted user?  But you were saying that it doesn't show the
full menu even if you re-login as admin...  Weird.

> The permission works for the menu but doens't work for the menu item.
> If I define three seperate menus for each role then the users see the
> correct menus. If I define one menu and each menu item has different
> role then the problem occurs.
The menu items might be stored in the session?  I don't know.  I guess
the rest is up to the Struts-Menu folks to figure out.

Best regards,
-- Shinobu Kawai

--
Shinobu Kawai <[EMAIL PROTECTED]>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to