This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am just starting to look at servlets. I have been using JSP / java beans with Java Studio Creator.
I have an almost working shopping cart and now want to pass an encrypted object from my app to a payment service provider on a url of xxxx/hghg/foo.asp. Could anyone give me an idea of how to pass the object to the servlet for it to pass to the payment service providers site.
I am sure this is basic and thanks for reading this.
Jim [ May 29, 2006: Message edited by: Bear Bibeault ]
The first thing to do would be to look at the documentation that your payment provider has given you. If you are new to web programming then it's quite possible you won't understand it, but it's impossible for us to even guess what it says. So if there are some things there you don't understand, then by all means ask about them here.
It sounds like you do have some instructions, since you refer to that "foo.asp" page, but you might want to double-check with the payment provider to make sure that's all the instructions there are.
Joined: May 29, 2006
Hi Paul, Thanks for that.
What the PSP requires is to be passed info from an HTML form with the action set to a submission URL with 4 hidden fields.The last field in name = value fields seperated by "&" . The string then encypted using a simple XOR algorithm and susequently Base64 encoded for safe transport in the HTML form.(The encrypt mmethods have been supplied by the PSP) Now what I want to do is pass this info from the encrypted String object to the PSP. I have completed the rest of the cart app. I can not use HTML Post with Studio Creator (It uses JSF components) so how would I pass the info to the PSP ?