File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of Android Security Essentials Live Lessons this week in the Android 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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30136
    
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.
 
jQuery in Action, 2nd edition
 
subject: Detecting error reasons in form login
 
Similar Threads
form validation
have problem with multiple forms on a jsp
Reset button & Validation Error
How to configure custom login module in jetspeed 2 ?
gui with screenshot