• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Using SSL with JSP pages

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic