This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Tomcat and the fly likes Invalid direct reference to form login page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Invalid direct reference to form login page" Watch "Invalid direct reference to form login page" New topic
Author

Invalid direct reference to form login page

Pedro Garcia
Greenhorn

Joined: Sep 12, 2002
Posts: 15
Hi.
I configure my tomcat 4.1.18 to managed JRealm security.
here is my server.xml configuration

When I run the protected example and login as an user without the role, send me next error.

HTTP Status 400 - Invalid direct reference to form login page
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).

This is my web.xml restrictions

I call in my login page
<form method="POST" action='<%= response.encodeURL("j_security_check") %>' >
How can I validate or managed this exceptions?


Pedro
Pedro Garcia
Greenhorn

Joined: Sep 12, 2002
Posts: 15
The same problem persists with new tomcat versions.
Somebody know how to fix that?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Invalid direct reference to form login page