To those who have done it

Can you advice on how you manage to redirect the http request from http to
https?

I have following scenario (typical of a shopping site).

1) User search and place item into shopping cart (eg calls
http://www.acmeshop.com/addtoshoppingcart.do)
2) addtoshoppingcart.do do some processing and redirects user back to
shopping search page (eg http://www.acmeshop.com/shoppingsearch.jsp )
3) User clicks on the check out page URL. (eg calls
http://www.acmeshop.com/showshoppingcart.do and return the results to
http://www.acmeshop.com/showcartcheckout.jsp).
4) User clicks on make payment. On the shwowcartcheckout.jsp, I need to be
able to set the form action attribute to call
https://www.acmeshop.com/makepayment.do (where makepayment.do will redirect
to the https://www.acmeshop.com/enterpaymentdetail.jsp). The form action
attribute on the enterpaymentdetail.jsp will call
https://www.acmeshop.com/processpayment.do )

What I am trying to find out is how do I set the https:// in the form action
attribute of showcartcheckout.jsp. The form tag does not have any attribute
will will create the https://...  string. Do I have to hard code the form
action in this page? Or am I total off the track?

Thanks in advance

Michael Mok

Reply via email to