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, Jun 10, 2009 at 8:08 AM, Tyson Cung <tyson.he...@gmail.com> wrote:

> 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 <c:choose> 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 blur here)
>
> Regards
> Tyson
>
> On 6/10/09, Matt Raible <m...@raibledesigns.com> wrote:
> > You could add logic to the index.jsp that redirects to mainMenu. You
> could
> > do this with a scriplet or JSTL's <c:choose> 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 hint! Should I create a action for mainManu?
> >>
> >> *
> >> Best Regards, *
> >>
> >> *Tyson Cung*
> >> *Hello Technology Pte.** **Ltd.*
> >> 180 Cecil Street, #07-03, Bangkok Bank Building, Singapore 069546
> >> (*F* : +65 6534 7133 (*HP* : +65 93896675
> >> * tyson.c...@hello-technology.com
> >>
> >> On Jun 10, 2009, at 1:59 PM, Matt Raible wrote:
> >>
> >> Yes.
> >>
> >> On Jun 9, 2009, at 9:32 PM, Thai Son Cung
> >> <tyson.c...@hello-technology.com>
> >> wrote:
> >>
> >> Hi all,
> >> In login.jsp just redirect to mainMenu:
> >>
> >> <c:redirect url="/mainMenu.html"/>
> >>
> >> Can I change it to redirect to different page depend on the user's
> roles?
> >>
> >>  *Best Regards, *
> >>
> >> *Tyson Cung*
> >> *Hello Technology Pte.** **Ltd.*
> >> 180 Cecil Street, #07-03, Bangkok Bank Building, Singapore 069546
> >> (*F* : +65 6534 7133 (*HP* : +65 93896675
> >> *  <tyson.c...@hello-technology.com>tyson.c...@hello-technology.com
> >>
> >>
> >>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>
>

Reply via email to