aspose file tools*
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
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30294
    
150

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, 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