aspose file tools*
The moose likes Servlets and the fly likes Simple j_security_check example not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Simple j_security_check example not working" Watch "Simple j_security_check example not working" New topic
Author

Simple j_security_check example not working

Jaspreet Singh UK
Ranch Hand

Joined: Mar 06, 2001
Posts: 42
Posted this on the tomcat-user list with no replies so lets try here!
Hi Guys
Here (link to src) is a simple example of form based login I'm trying to get working on Tomcat 4.0.3 and it doesn't!!! I've checked the archives and noticed
someone else had the same problem and never got past it! Anyway if you type the url
http://localhost:8080/SCJWD/
And click on the Secret Servlet, you get re-directed to the form based login page and if you type in the correct username and password (tomcat, tomcat, by default allowed for tomcat-4.0.3) you get an error - and I quote
type Status report
message Invalid direct reference to form login page
description The request sent by the client was syntactically incorrect
(Invalid direct reference to form login page).
Am I missing something somewhere .. Because I copied this example straight out of the java servlets book - jason hunter.
If you use incorrect credentials then the behaviour is as expected, ie you get redirected to the error page.
Can some one shed light on what I might be doing wrong?
Cheers
Jas
Jaspreet Singh UK
Ranch Hand

Joined: Mar 06, 2001
Posts: 42
bump and :-
Replying to my own message ..
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8976
Don't know if it applies in my situation ..
Jas
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Simple j_security_check example not working
 
Similar Threads
Logout Problem....
Dobut in Realm Authentication
login page redirect
problem in logout procedure
Admin tool: "Invalid direct reference to form login"