my dog learned polymorphism*
The moose likes Tomcat and the fly likes using https for registring Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "using https for registring" Watch "using https for registring" New topic
Author

using https for registring

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

Hola ranchers.
I am using Tomcat 4.1.27 and I have the following question:
we know that if we want to use the HTTPS protocol, we must uncomment *some
part* from the server.xml file.
OK, but in my web application, I have a register utiliy, when the user click this hyperlink, then Tomcat must use the HTTPS, like (https://localhost:8000/users/register.jsp)
and if the user doesn't click this link, Tomcat must use the usual HTTP.
(what I want to say is, like java.sun.com site, we can surf the site as usual, but when click on Register, then java.sun.com use HTTPS)
How to perform this functionality, and can I test it use localhost??
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

This is largely Tomcat specific, I'll move it to the Apache/Tomcat forum for you.
 
Consider Paul's rocket mass heater.
 
subject: using https for registring