• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

converting to https from http

 
nishad km
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

my home page is loading in http.( we can access home page through https also).

if user is in http and submit the page we need to submit the page in https.
we need to do it from front end itself.

We are using struts for our application. when user clicks on the submit button an javascript will be called. form there we need to convert it to https. is it possible ? give me some solution to submit the page in https.
 
Narendra Dhande
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

By security constraints entries in web.xml can help you to switch from http to https. For the pages you want to be secure set

<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>

Of course your App server must support the SSL for this.

Thanks
 
Atul Sawant
Ranch Hand
Posts: 304
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Narendra...

Is there a way to know that your server supports SSL?
 
Narendra Dhande
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

That depends upon your App server you are using. Please check your App Server documentation. Usually The SSL is not free, you have to purchase the certificate from Competent Authority (SSL Provider).

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic