aspose file tools*
The moose likes JSP and the fly likes Using SSL with JSP pages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Using SSL with JSP pages" Watch "Using SSL with JSP pages" New topic
Author

Using SSL with JSP pages

Trader Joey
Ranch Hand

Joined: May 11, 2000
Posts: 33
I have an existing web-application ( uses JSP and servlets ) that does not use SSL.
Now, I want to use SSL in the application so that certain pages use SSL (https) and the rest dont.
My question is this. In order to use SSL in my web-application do I have to change all the links on these pages to http and https as the case may be ? ( and also write code within the https refered pages to see if the protocol used was indeed https ).
Please advice.
I am using Tomcat 4.0.
Thanks
Nikhil
Remesh Govind
Greenhorn

Joined: Aug 28, 2002
Posts: 8
Nikhil,
a)HTTP and HTTPS you can mix and use .No problemo.

b) but once on a secure connect ... maintain all info that way. Data is confidential right.

c) you will need to enable HTTPS .

d) you will need to get a valid certificate.
e) make sure your browser supports https.
f) if you are going through a proxy . make sure it is not filtered.

cheers
Remesh


Remesh G
Juanjo Bazan
Ranch Hand

Joined: Feb 04, 2002
Posts: 231
Originally posted by Nikhil Nikhil:

My question is this. In order to use SSL in my web-application do I have to change all the links on these pages to http and https as the case may be ? ( and also write code within the https refered pages to see if the protocol used was indeed https ).

As Remesh said the HTTPS has to be configured in you server creating a valid certificate.
To get info about how to do it in Tomcat check this out
Concerning your code, you would have to change the links properly, but you don�t need to write code within the https refered pages to check the protocol.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using SSL with JSP pages