Re: [appfuse-user] Redirect to mainMenu

2009-06-10 Thread Matt Raible
You could add logic to the index.jsp that redirects to mainMenu. You could do this with a scriplet or JSTL's tag. Or yes, you could map mainMenu to an Action and do the logic there. Matt On Wed, Jun 10, 2009 at 12:28 AM, Thai Son Cung < tyson.c...@hello-technology.com> wrote: > Give me some hin

Re: [appfuse-user] Redirect to mainMenu

2009-06-10 Thread Tyson Cung
I have added a MainMenuAction to check for the roles of the user and load the pages accordingly. But I do think that it is nicer to get the tag to handle the re directions. The only issue is how to get the remoteUser's role in the index.jsp (sorry if it sounds to trivial for you, I am just very b

Re: [appfuse-user] Redirect to mainMenu

2009-06-10 Thread Matt Raible
I don't believe you can get a list of a user's roles using JSTL. However, if you use a scriptlet, you can use request.isUserInRole('rolename'). You can do this with JSTL because JSTL doesn't allow you to call methods with arguments. http://www.google.com/search?q=jstl+isuserinrole Matt On Wed, J