Re: Trigger a method and also submit a static form?
Paul Lynch <[email protected]>
| Newsgroups | gmane.comp.web.webobjects.devel |
|---|---|
| Message-ID | <[email protected]> |
On 1 Nov 2006, at 22:58, PaulM wrote: > Is there a way to trigger a method and also submit a static form. > > In my web application I collect some data on one page (WOForm) and > save it, > then present the saved data as a "will you please verify this > information". > If they click continue it submits a post to Verisign (static form). > I'd like > to perform the save and the verisign post with one user click. Use WOHTTPConnection to process the Verisign POST within your action method. This approach has some limitations, but is just fine for simple connections. > I found this page... http://www.devx.com/Java/Article/17679/1954? > pf=true > http://www.devx.com/Java/Article/17679/1954?pf=true which has code > for > doing a "Send POST Requests from Java" by Vlad Patryshev. But is > there an > easier way to do this? His example seems to be more of a request for how to do it. But see the recent thread here on "creating WORequest multipart form content?", which covered exactly the same ground, and Mike Schrag's comment in that thread on using Jakarta's HttpClient. Paul