RE: Submit to 3rd party URL after completing Action

2004-08-31 Thread Daniel Perry
nt: 31 August 2004 16:17 > To: Struts Users Mailing List > Subject: Re: Submit to 3rd party URL after completing Action > > > I'm currently trying to do something similar. Therefore I would like to > share my thoughts: > > Relying on javascript for business critical funct

Re: Submit to 3rd party URL after completing Action

2004-08-31 Thread Christoph Kutzinski
I'm currently trying to do something similar. Therefore I would like to share my thoughts: Relying on javascript for business critical functions (and if payment is not a business critical function, what is?) is IMO NEVER a good idea, because it is not fail-proof at all. What only if the user ha

RE: Submit to 3rd party URL after completing Action

2004-08-31 Thread Richard Aukland
Many thanks to Bill and Partha for your suggestions. I used the javascript (2nd) technique because I am currently more familiar with it. It is now working. :) Cheers Richard If you use redirect to the payment url, the data in the form is in the session in your site and not the external sit

RE: Submit to 3rd party URL after completing Action

2004-08-31 Thread Partha Ranjan Das
If you use redirect to the payment url, the data in the form is in the session in your site and not the external site where it is needed. So redirect or forward will not help. Try splitting up this work-flow into two steps: 1. in the first one you write the action class and save the stuff int

Re: Submit to 3rd party URL after completing Action

2004-08-31 Thread Bill Siggelkow
You are only going to be able to redirect to an external URL. However, when you redirect its a new request so the form data is lost. I would use the Jakarta Commons HttpClient to do the posting. Bill Siggelkow Richard Aukland wrote: Hi, I have a form which must be sent to an external site for pa