This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Servlets and the fly likes Detecting error reasons in form login Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Detecting error reasons in form login" Watch "Detecting error reasons in form login" New topic
Author

Detecting error reasons in form login

Luke Murphy
Ranch Hand

Joined: May 12, 2010
Posts: 300
Hi,
Is it possible to detect the actual error reason in form based loging?

For example, user does not exist, password mismatch...

Now before someone says well you wouldn't want to be telling the user why they failed would you? this is just for some logging etc.

Cheers
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 32635
    
215

Luke,
What tool is doing login on your behalf? If you were doing it yourself, you would definitely know. If your app server or a single sign in tool is doing login, it would depend on the tool.


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Luke Murphy
Ranch Hand

Joined: May 12, 2010
Posts: 300
Jeanne Boyarsky wrote:Luke,
What tool is doing login on your behalf? If you were doing it yourself, you would definitely know. If your app server or a single sign in tool is doing login, it would depend on the tool.


I am using websphere.

Basically, I would like to know some more information. For example the HTTP status code is it 401, 402, 403 etc.?

many thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Detecting error reasons in form login
 
It's not a secret anymore!