HTTPS FORM POST FROM EXTERNAL SITE TO WICKET WEBPAGE
Hi there, I need to provide returnURL for payment portal like Paypal. I created bookmarkable WebPage called paymentResultPage and path is called pay_result. Once user is done with payment, this portal will do the HTTPS form POST (not GET) to the returnURL returning whether payment went successful or not so I can record that in DB. The problem is webpage's constuctor public PaymentResultPage(PageParameters pageparameters) doesn't catch the fields that are passed via form post when I provided url like http://www.abcd.com/pay_result. How can I get the values that are form posted from external site to the wicket page? Do I have to pass things like ?form7_hf_0=wicket%3Ainterface=%3A1%3Aform%3A%3AIFormSubmitListener? Any suggestion would be great thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/HTTPS-FORM-POST-FROM-EXTERNAL-SITE-TO-WICKET-WEBPAGE-tp4650857.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: HTTPS FORM POST FROM EXTERNAL SITE TO WICKET WEBPAGE
Thanks for the reply. I don't think Webpage is called at all. Do I need to add crazy wicket url like pay_result?form7_hf_0=wicket%3Ainterface=%3A1%3Aform%3A%3AIFormSubmitListener in returnURL in order to get what's been submitted from external site to my web page? Perhaps it's HTTPS and it's using POST method to submit a form? But it should work same as GET method that passed via query string (e.g. www.mywicketsite.com/pay_result?status=success) right? parameters.getString(status) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/HTTPS-FORM-POST-FROM-EXTERNAL-SITE-TO-WICKET-WEBPAGE-tp4650857p4650859.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: HTTPS FORM POST FROM EXTERNAL SITE TO WICKET WEBPAGE
If your constructor isn't being called, you have something more basic to figure out. I just tested with a quickstart, and it worked as expected. See https://gist.github.com/3204518. Hitting localhost:8080 shows value is not specified, then submitting the (non-Wicketized) form shows value is whatever I entered. On Sun, Jul 29, 2012 at 8:36 PM, hannach hann...@solutiondynamics.comwrote: Thanks for the reply. I don't think Webpage is called at all. Do I need to add crazy wicket url like pay_result?form7_hf_0=wicket%3Ainterface=%3A1%3Aform%3A%3AIFormSubmitListener in returnURL in order to get what's been submitted from external site to my web page? Perhaps it's HTTPS and it's using POST method to submit a form? But it should work same as GET method that passed via query string (e.g. www.mywicketsite.com/pay_result?status=success) right? parameters.getString(status) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/HTTPS-FORM-POST-FROM-EXTERNAL-SITE-TO-WICKET-WEBPAGE-tp4650857p4650859.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org