html form submit handle response page with java
I have a PayPal "pay now" button. If I click it - a POST request is sent to paypal and my current view gets redirected to the paypal site where I can pay.
In my application I want to do 2 Actions with one button - so I have to build the paypal button on my own in plain java and send a post request tp paypal.
Now I get a response page (html) but I have no idea how I can do the same redirect as done by clicking the button. I could display the page under my url (wich is not what I want) but I can't do the same redirect as the original button.
So my questions are:
Why does this redirect really happen and how can I do this in pla开发者_C百科in java ( it's a JSF1.2 project)
or is there an other solution to my problem?
thanks a lot!
k2
My solution was, that paypal offers payment via email. I took this link to work around this problem.
精彩评论