• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to programmatically send a form
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to programmatically send a form


  • Subject: Re: How to programmatically send a form
  • From: Dev WO <email@hidden>
  • Date: Thu, 19 Jan 2006 21:17:55 +0100

Using HttpsURLConnection is a bottleneck. If you only have one user, then fine, if a few charge cards at the same time, it will bottleneck. I have never done it the easy way (I'm a glutton for punishment! ;-), but AFAIK, the most common way for the easy way out is to let the provider provide the form and handle the user interaction inside a frame of one of your pages.
In fact I "just" need to generate a "signed" form then the submit button should do a couple thing on my side, and send my user to the bank server.
Then, depending on the transaction, the bank will call a direct action on my side to activate a sort of recipe.
So basically I don't really need to "wait" for something, I send the form to the bank then if something happens (a call to my direct action), then I'll update the order to either true or false.
So actually I'm pretty "stop" about how to write a method that would provide "send my form using http and display the bank site", but maybe just having a url in the action field of the form would lead to this behavior and linking an action to the submit button to do the stuff I need on my side (like saving the order).
Would it work to have both something for the action of the form and an action bind to the submit button?
In this case, I'm not sure I could handle the following case:
bug on my side, but the user get send to the bank account anyway.


In fact after thinking about it, I'm pretty sure I shouldn't provide the form inside the page, but only generate the post action when the submit button is clicked...I'm not sure I'm clear;)

Usually your provider will give you instructions specific to sending a user to their credit card page where the user fills in the details and processes the payment.
They do (more below)

For example if you go to this page on this site and right-click on the actual form and open in a new window, you will see that the form is really a page on the credit card provider's site shown inside a html frame on the originating site.
http://www.loacademy.com/OrderProduct.asp (not my site ... I don't do asp dev!)
I cannot use frame, we've got important concerned about accessibility, and frame are just... horrible;)
But I don't need to handle the bank part, only send my user there using a "post" form, and eventually answer to a call to a direct action.

Did your bank provider provide you with a development kit/manual?
Yes they do provide me with a Java kit containing the method that would generate the form as a string....but I don't know what to do with this string:(

On Jan 19, 2006, at 12:26 PM, Dev WO wrote:

Hi Kieran,
thanks for the link and your blog;)
If I'm not that expert in WO and java programming, would you say I should go for the HttpsURLConnection or I could stick with your example and go for the HttpClient library from Apache?
What would be the method to provide another page than the WO application, like sending the user to the bank website? I've never done something like that...


Thanks for your help

Xavier



This might help.....
http://homepage.mac.com/kelleherk/iblog/C149402102/E773353034/ index.html


And for multi-threading management, I like this free library........
http://www.forward.com.au/javaProgramming/threadReturnsPackage/ ToCatchAThread.html


Regards, Kieran

On Jan 18, 2006, at 3:35 PM, Dev WO wrote:

After digging a little more with the information provided by the bank, it appears I have the following:
-a method to create the form which uses htmlEncode() to convert the characters and provide me with a String of the form


So I only have one question (for now;)): how to make my WO action call the form created and "execute it" by returning the url specified as the "action" in this form?

Thanks:)

Xavier



Hi guys,
I need to send a form using a WO action, I also have to use "post" for it.
Of course I have to send a couple values with it;) The action of this from has to send my visitor to another website (url).
Yes it's online payment;)


I think it's not a big deal, but I don't really know where to start, and how to do it, especially using a "post" action...

Could someone point me to a tutorial or a sample so I could get started?

One more thing regarding this, the bank requires me to encode everything in the form like "://" would become "&#x3a;&#x2f;&#x2f;", is there something in WO that can do it or should I pass the strings to a custom method that would convert all the characters?

Thanks a lot

Xavier
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
@anazys.com


This email sent to email@hidden


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden







_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >How to programmatically send a form (From: Dev WO <email@hidden>)
 >Re: How to programmatically send a form (From: Dev WO <email@hidden>)
 >Re: How to programmatically send a form (From: Kieran Kelleher <email@hidden>)
 >Re: How to programmatically send a form (From: Dev WO <email@hidden>)
 >Re: How to programmatically send a form (From: Kieran Kelleher <email@hidden>)

  • Prev by Date: Re: Rss feeds
  • Next by Date: Re: Managing EOF caching
  • Previous by thread: Re: How to programmatically send a form
  • Next by thread: Is there SNMP Support in WO?
  • Index(es):
    • Date
    • Thread