> From: John Doe [mailto:[EMAIL PROTECTED] 
> Subject: from https to http?

> _but_ when I want to go from "restricted.jsp" back to
> "index.jsp" using the anchor defined in it the URL is
> not replace by the standard "http" URL and then gets
> stuck with a "https://localhost:8443/testSSL/index.jsp";

To expand a bit on what Chris said:

Look at the form of the link in restricted.jsp:
>         <a href="../index.jsp">Back to index</a>

It's a relative link, so the browser (not Tomcat) resolves it based on
the URL of the current page.  The same happened when you went from
index.jsp to ssl/restricted.jsp, except Tomcat recognized that ssl was
controlled with a <security-constraint>, so it generated a redirect back
to the browser with the http protocol and port replaced by https and the
redirect port; the browser then made the actual https request.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
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