A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Java
»
JSF
Author
isUserInRole always returns false
Krishnappan Subramanian
Greenhorn
Joined: Jul 09, 2008
Posts: 2
posted
Jul 09, 2008 14:27:00
0
i have my web.xml setup ... the below code is what i am using for rendering .... but it always returns false .... any idea? please help asap....thanks
HttpServletRequest
httpServletRequest =(
HttpServletRequest
)FacesContext.getCurrentInstance().getExternalContext().getRequest();
validUser=httpServletRequest.isUserInRole("ADMIN USER");
return validUser;
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35252
7
posted
Jul 09, 2008 15:09:00
0
Is the user ever asked for username and password? If so, when and how?
Android apps
–
ImageJ plugins
–
Java web charts
Krishnappan Subramanian
Greenhorn
Joined: Jul 09, 2008
Posts: 2
posted
Jul 09, 2008 15:17:00
0
the user is authenticated via LDAP security ...
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: isUserInRole always returns false
Similar Threads
user authentication servlet problem
purge cached sessions?
cookie questions
Session timeout in filter detection?
Filter Issue
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter