Re: calling in https mode from http mode
"Hyne, David" <[email protected]>
| Newsgroups | gmane.comp.java.sun.servlet |
|---|---|
| Message-ID | <[email protected]> |
Sorry, typo error. it should read as " https://appleyard.com <https://appleyard.com> " David -----Original Message----- From: Hyne, David [mailto:[email protected]] Sent: Friday, April 18, 2003 2:02 PM To: [email protected] Subject: Re: calling in https mode from http mode Hi, Have your server set up to listen in port 443, and in your deployment descriptor web.xml file specify the security constraint (see below tag). Having this entry in web.xml and restart your server, because of <url-pattern>/*</url-pattern> it will force to access SSL starting from root. You may change according to your requirements, say only /admin and forward etc. E.g., Say your website is www.appleyard.com, by just typing "appleyard.com" on browser it will force to go into " http://appleyard.com <http://appleyard.com> ". You don't have to type in "https" at all. I hope this is what you are looking for. David <security-constraint> <user-data-constraint> <transport-guarantee>CONFIDENTIAL</transport-guarantee> </user-data-constraint> <web-resource-collection> <url-pattern>/*</url-pattern> </web-resource-collection> </security-constraint> -----Original Message----- From: Richard Johnstone [ mailto:[email protected] <mailto:[email protected]> ] Sent: Thursday, April 17, 2003 7:28 AM To: [email protected] Subject: calling in https mode from http mode Hi, I have an html page and I want to call a servlet. Currently the link href is /servlet/myservlet. How do I call this in ssl mode without having to hardcode in https:\\myserver/servlet/myservlet <https:\\myserver/servlet/myservlet> into the link? Ta Rich ---------------------------------------------------------------------------- -- This email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else, unless expressly approved by the sender or an authorized addressee, is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action omitted or taken in reliance on it, is prohibited and may be unlawful. If you believe that you have received this email in error, please contact the sender, delete this e-mail and destroy all copies. ============================================================================ == ------------------------------------------------------------------------------ This email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else, unless expressly approved by the sender or an authorized addressee, is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action omitted or taken in reliance on it, is prohibited and may be unlawful. If you believe that you have received this email in error, please contact the sender, delete this e-mail and destroy all copies. ==============================================================================