Whenever i come accross this, i put a 'confirmation' screen, with all the
details repeated, and a 'pay now' button that submits the (hidden) form to
the external site.

Daniel.


> -----Original Message-----
> From: Christoph Kutzinski [mailto:[EMAIL PROTECTED]
> Sent: 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 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 has switched of javascript in his browser?
>
> IMO this kind of functionality should always be handled server-side!
>
> Richard Aukland wrote:
>
> > 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 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 into
> > database and then forward to a page where a hidden form is recreated
> > using
> > the same values as the first one,
> > 2.  in the "body onload" of this page, submit the form to the external
> > url.
> >
> > Hope this helps.
> >
> > Regards,
> > Partha
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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

Reply via email to