• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

unable to get response from payment website

 
Ranch Hand
Posts: 518
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

i am trying to post some parameters to a payment website like the following. If i run a jsp, that will pass the parameters to the controller and from the controller i am trying to post the values received from the jsp and trying to get the reponse in the same controller. But i dont know how to find whether the controller gets connected with the payment websit and request has been sent from my end. I dont whether my code is correct and i am following the correct procedure. please assist me to do this. i am posting the code also.




When i try to print the variable "line", I am getting null.

Thanks
 
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Start here: Don't println to a Socket. It's most likely not what's causing the problem, but you're doing that by way of the "readLine" method and need to fix that.
 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi preethi,
When I'm doing a quick check to verify that a POST has been received by the server, I tend to simplify my code, for instance only sending one variable. The payment module should have an API function you can call (it should send a simple "OK" type of response) simply to verify that you're making the call correctly. If your code isn't working, I'd recommend that you try one of those two options.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic