Herchel Wojciech wrote:

> Hi!
> I've got the following problem - I want to dynamically display certain
> information to a user, depending upon a role they've been granted (via JDBC
> authorisation). how do i do that? getParameter("role") returns null.
>

The getParameter() method returns parameters, not roles.  You want to
use
request.isUserInRole() instead.  Example in a JSP page:

<% if (request.isUserInRole("admin") { %>
    ... stuff only admins should see ...
<% } %>

>
> vVolf
>

Craig McClanahan

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

Reply via email to