简体   繁体   中英

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 plain 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM