Marino Vittorio wrote:
> I want to build an authentication mechanism via JDBC realm and basic
> authentication that lets me request for user role in each jsp page of my
> application. In other words I want a jsp page to be accessed from more than
> 1 role, and put if statements to show links depending on user role.
>
> if role.equals("manager")
> <href...>
> else
> <href...>
>
> Can someone help me? Thanks, Vittorio
>
Can't you do this with scriptlets?
<% if (request.isUserInRole("manager") || request.isUserInRole("admin"))
{ %>
... HTML for a manager or admin ...
<% } else { %>
.... HTML for a non-manager and non-admin ...
<% } %>
Craig McClanahan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]