Rizvan:

We have written an extension to Struts that does the things you are asking
about.  This extension allows you to specify certain actions to requested
via https.  Our extension to the <html:form> tag determines whether the
posting action should be requested via http or https.  If it should be
https, the https://and.so.on will be added to the posting URL in the <form>
tag generated as output.  See http://struts.ditlinger.com for some more info
or feel free to email me with your questions.

Steve

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 12:59 AM
To: [EMAIL PROTECTED]
Subject: HTTPS + Struts




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

Rizvan



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to