Re: Issue with logging in to Tomcat 6.0

2010-09-22 Thread Mark Thomas
On 22/09/2010 06:27, Martin O'Shea wrote:
 But when I try to login to Tomcat, I am given message 'Invalid direct
 reference to form login page' but do not quite see why.

Because you haven't told Tomcat that those pages need to be protected by
authentication. Do that, and Tomcat will handle the whole process for you.

Mark



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Issue with logging in to Tomcat 6.0

2010-09-22 Thread Martin O'Shea
 Because you haven't told Tomcat that those pages need to be protected by
 authentication. Do that, and Tomcat will handle the whole process for you.

But won't the authentication apply to the whole page in question? I'm only
looking to have a user log in when they seek to do something, like post a
comment, on the page.

-Original Message-
From: Mark Thomas [mailto:ma...@apache.org] 
Sent: 22 Sep 2010 15 43
To: Tomcat Users List
Subject: Re: Issue with logging in to Tomcat 6.0

On 22/09/2010 06:27, Martin O'Shea wrote:
 But when I try to login to Tomcat, I am given message 'Invalid direct
 reference to form login page' but do not quite see why.

Because you haven't told Tomcat that those pages need to be protected by
authentication. Do that, and Tomcat will handle the whole process for you.

Mark



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Issue with logging in to Tomcat 6.0

2010-09-22 Thread Mark Thomas
On 22/09/2010 07:50, Martin O'Shea wrote:
 Because you haven't told Tomcat that those pages need to be protected by
 authentication. Do that, and Tomcat will handle the whole process for you.
 
 But won't the authentication apply to the whole page in question? I'm only
 looking to have a user log in when they seek to do something, like post a
 comment, on the page.

Then protect the URL that the comment is POSTed to.

Mark



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Issue with logging in to Tomcat 6.0

2010-09-22 Thread Martin O'Shea
It appears to be working. Many thanks.

-Original Message-
From: Mark Thomas [mailto:ma...@apache.org] 
Sent: 22 Sep 2010 16 06
To: Tomcat Users List
Subject: Re: Issue with logging in to Tomcat 6.0

On 22/09/2010 07:50, Martin O'Shea wrote:
 Because you haven't told Tomcat that those pages need to be protected by
 authentication. Do that, and Tomcat will handle the whole process for
you.
 
 But won't the authentication apply to the whole page in question? I'm only
 looking to have a user log in when they seek to do something, like post a
 comment, on the page.

Then protect the URL that the comment is POSTed to.

Mark



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org