Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

pass object using servlet to .asp ?

 
Jim Ascroft
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

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.

Regards

Jim
[ May 29, 2006: Message edited by: Bear Bibeault ]
 
Paul Clapham
Sheriff
Posts: 21128
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Jim Ascroft
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?

Regards

Jim
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic