I am trying to use encodeURL for all my href's and login page
but I get:

Apache Tomcat/4.0.2 - 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).

If session cookies are off. Any ideas how to fix this mess ?


============
loginpage.jsp
============
<html>
<body>

<table border="0" cell="" padding="0" size="480" width="640">
<tbody>
        <tr>
                <td nowrap="" width="150"><p align="Center"><img src="../marslogo.gif"
height="150" width="150"></p></td>
                <td nowrap="" width="420"><h2 align="Left"><font face="Trebuchet
MS">Southern New England Army Mars</font><br>
                <font face="Trebuchet MS">Secure Site</font></h2>
                        </td>
        </tr>
</tbody>
</table>
<%
 System.out.println("JSP======> " + request.getRemoteUser() + "|" +
request.getRequestURI()  + "|" + request.getRemoteAddr() + "|" + new
java.util.Date().toString() + "|" + request.getHeader("User-Agent") );
%>

<%
String url = "j_security_check;jsessionid=" + session.getId();
%>

<h2>Login page </h2>
<form method="POST" action='<%= response.encodeURL(url) %>'>
<table border="0" cell padding="0" width=480>
 <tr>
    <td  nowrap><font face="Fixedsys">Username:</font></td>
    <td ><input type="text" name="j_username"></td>
 </tr>
 <tr>
    <td nowrap><font face="Fixedsys">Password:</font></td>
    <td ><input type="password" name="j_password"></td>
 <tr>
 <tr>
        <td > </td>
        <td><input type="submit" value="Login"></td>
 </tr>
<br>
</table>
</form>
</body>
</html>

-----Original Message-----
From: Anders Rundgren [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 10, 2002 11:22 AM
To: Tomcat Users List
Subject: Keep-Alive. Was: IE 5 on Mac is incompatible with TC 4?


Rob,
I'm not sure I understand what you want, but regarding session cookies,
IE5/Mac and SSL, I think that the problem is that TC 4 does not seem to
automatically support persistant TCP-connections which both gives bad
performance, and confuses at least one browser to the extent that it
stops sending cookie data.

Anders

----- Original Message -----
From: "Rob Cartier" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Sunday, March 10, 2002 13:14
Subject: RE: IE 5 on Mac is incompatible with TC 4?


How would you do that if you are using Form authentication
and the web.xml file directs them to a loginpage before they
access the index.jsp

Have the same problem and found that If they accept session cookies
then all is ok

Your help would be greatly appreciated.



-----Original Message-----
From: Anders Rundgren [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 7:04 AM
To: Tomcat Users List
Subject: SSL: IE 5 on Mac is incompatible with TC 4?


Now i have digged a little bit further in this.
The IE 5 Mac missing session cookie problem only occurs when using SSL.
Too bad our app needs SSL.

Anders

----- Original Message -----
From: "Anders Rundgren" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, March 08, 2002 11:27
Subject: IE 5 on Mac is incompatible with TC 4?


Hi,
I have a Tomcat app using sessions based on cookies (i.e. std way) that
works with a huge set of browsers and OSes.

But on Mac using IE 5 it does not.  The culprit seems to be that session
cookies are not compatible in some way as they are not visible in
TC.

Is this a known problem?

BTW, the configuration is Apache on Linux, using ajp1.3 and TC 4.0.2

cheers,
Anders R


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to