This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Websphere and the fly likes login error cause ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "login error cause ?" Watch "login error cause ?" New topic

login error cause ?

Guillaume Patry

Joined: Oct 28, 2005
Posts: 1

i'm currently maintaining a small web-app running on Websphere.

We got a form-based login that is working, using a Custom user registry to check informations on user from a LDAP and a SAP system.

My problem : depending on the reason for logon failure, we would like to get a different error message. The customUserRegistry errors contains the textual infos i need, but i can't seem to be able to get the error causing the failure in the login_error.jsp page.

Is there a way to get the login failure cause ?

Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3697

I'd like to help but you need to go into more specifics of your problem. What kind of web application are you running? Why can't you use a try/catch block in the JSP page to read the error then re-write your own output to the user. Not the best solution, but again it depends on your setup and system.

My Blog: Down Home Country Coding with Scott Selikoff
I agree. Here's the link:
subject: login error cause ?
Similar Threads
checking whether user logged in or not
How to implement User Registry differently for each EAR installed in the same WAS
Get values from a servlet
How to login to a machine ?
authenticat user with j_security_check