On 23/05/2008 15:53, Christopher Schultz wrote the following:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Carol,

Carol Cheung wrote:
| Thanks Christopher Schultz for pointing out my error: the url pattern
| should be /jsp/welcome.jsp.
|
| Now, I'm able to see login.jsp when requesting welcome.jsp.
| If I enter an incorrect login/password combination, I get taken to
| (correctly) loginError.jsp
| But if I enter a correct login/password combination, I get a refreshed
| login.jsp page (form fields are cleared), instead of being taken to
| welcome.jsp

What is the original URL you are trying to reach (that results in the
login page being displayed)?

- -chris

Hi Christopher
I'm requesting
http://hostname:port/appname/jsp/welcome.jsp
(Sanitized for confidentiality reasons.)

I've secured welcome.jsp with <url-pattern>/jsp/welcome.jsp</url-pattern>

and set
    <form-login-config>
      <form-login-page>/jsp/login.jsp</form-login-page>
      <form-error-page>/jsp/loginError.jsp</form-error-page>
    </form-login-config>

Thanks much,
Carol Cheung

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to