; if (role.length() > 0) { if (request.isUserInRole(role)) { %> You have
>>> been
>>> granted role <%= util.HTMLFilter.filter(role) %>
>>>
>>> <% }
>>>
>>> which will output something like <admin> assuming your are
>>
%>
<% }
which will output something like <admin> assuming your are
requesting
admin access
HTH/
Martin--
- Original Message -
Wrom: YZUNNYCGPKYLEJGDGVCJVTLBXFGGMEP
To: "Tomcat Users List"
Sent: Thursday, February 07, 2008 2:40 PM
Subject: Re: Application Realm in Tomcat
ole <%= util.HTMLFilter.filter(role) %>
>
> <% }
>
> which will output something like <admin> assuming your are
> requesting
> admin access
>
> HTH/
> Martin--
> - Original Message -
> Wrom: YZUNNYCGPKYLEJGDGVCJVTLBXFGGMEP
> To: "Tomcat
/
Martin--
- Original Message -
Wrom: YZUNNYCGPKYLEJGDGVCJVTLBXFGGMEP
To: "Tomcat Users List"
Sent: Thursday, February 07, 2008 2:40 PM
Subject: Re: Application Realm in Tomcat
> Via the spec - you can't query all the roles a user has. But you can say
> request.isUserInRole(rol
If you purpose is to find the roles in the database wouldn't it be
better just to query the database? What kind of realm are you using?
If its something like the 'memory' realm then you can just read the
file. If its a RDBM then a few lines of JDBC code or the use of a
persistence manager would
Via the spec - you can't query all the roles a user has. But you can say
request.isUserInRole(rolename)
If you *need* access to the realm, things start to get ugly. You need to
start coding against Tomcat internal specific classes.
-Tim
maux wrote:
Hi,
I am doing a Java code. This code hav
I only want to know the steps i have to follow, to know what realm an
application is using.
Thank you
maux wrote:
>
> Hi,
> I am doing a Java code. This code have to access to the realm
> that an application in Tomcat is using, after that the code have to access
> to
> that realm and look f