Re: Tapesty form target external url (ie custom url)
You have a few options 1. Return a java.net.URL from your onSuccess() event - This will only work if your external URL allows GET. You can use the query part of the URL to pass request parameters 2. Use javascript to post a form to the external URL - Redirect after your onSuccess() event to a page which posts a simple non-tapestry form to the external URL. 3. Serverside POST - Use something like apache HttpClient to do the external POST from your server. You might get an external session id back that you can then use in a redirect to the external site. Note, in all of these solutions I have assumed you want to first handle the form in tapestry so you can validate etc.
Re: Tapesty form target external url (ie custom url)
Your assumption is correct, I chouse to do it view different forms at the moment (the users hast to click few more times but I might change it in the shore future as per you suggestions) I will need to google a bit more about your 3ed option it seems to be what I need (the website I am trying to forward data - moneybookers has mention something similar) Thanks, Cheers On Mon, Apr 29, 2013 at 9:57 AM, Lance Java lance.j...@googlemail.comwrote: You have a few options 1. Return a java.net.URL from your onSuccess() event - This will only work if your external URL allows GET. You can use the query part of the URL to pass request parameters 2. Use javascript to post a form to the external URL - Redirect after your onSuccess() event to a page which posts a simple non-tapestry form to the external URL. 3. Serverside POST - Use something like apache HttpClient to do the external POST from your server. You might get an external session id back that you can then use in a redirect to the external site. Note, in all of these solutions I have assumed you want to first handle the form in tapestry so you can validate etc. -- Sincerely *Boris Horvat*
Tapesty form target external url (ie custom url)
I need to forward some data to a given url (external to my application). However I dont want to create a normal form as then I wont be able to use tapestry mixins and such on field elements. How can I achieve this to forward form process to an external url? Cheers -- Sincerely *Boris Horvat*
Re: Tapesty form target external url (ie custom url)
Hi, Boris! I did something similar in my recent project: http://apache-tapestry-mailing-list-archives.1045711.n5.nabble.com/How-to-change-HTML-form-action-Or-is-there-any-better-option-td5720723.html Maybe you find this useful. On Sunday, April 28, 2013, Boris Horvat horvat.z.bo...@gmail.com wrote: I need to forward some data to a given url (external to my application). However I dont want to create a normal form as then I wont be able to use tapestry mixins and such on field elements. How can I achieve this to forward form process to an external url? Cheers -- Sincerely *Boris Horvat* -- Dmitry Gusev AnjLab Team http://anjlab.com