• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

There is no Action mapped for action name prePaymentManager

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

I got ePayment services from my bank and they provided the following sample code. I test this php file and its working fine.



I want tried to convert it into Java Servlet. At step-1 I did the following:



When I execute the above code them am getting the following error:


Thanks in anticipation
 
Sheriff
Posts: 67590
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.
 
Ranch Hand
Posts: 607
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Could you post your web.xml and struts-config.xml?

How are you exactly 'executing' your servlet code?
 
Farakh khan
Ranch Hand
Posts: 850
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Sam Mercs wrote:Could you post your web.xml and struts-config.xml?

How are you exactly 'executing' your servlet code?



Sorry this is not Strut question and purely related to Java Servlet. Strut may be running with Jboss server at Bank end that's why when my servlet is accessing then its throwing the mentioned error.

Please help me to sort out the problem in my Servlet

Best regards
 
Farakh khan
Ranch Hand
Posts: 850
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello again,

The php file example code I copy pasted in my first post. Now as a step-1 I translate this php code in Java servlet like:

1- My code will authenticate our merchant id, secret hash code, merchant reference and amount to bank server as GET REQUEST. Is that right? e.g. https://domainname.audicards.com/TPGWeb/payment/prepayment.action?accessCode=25023s1B3&amount=500&merchTxnRef=1214&merchant=TEST2332301&orderInfo=adds&vpc_SecureHash=5DB0F8628C4801B24110FD5SDF365437U&returnURL=http://www.domainName.com/servlet/PaymentManager?action=pay

2- Secure Hash will be encrypted by my Java.security.*; package

3. Bank server will verify and sent me GET RESPONSE i.e. codes like right now am getting back "Y" : invalid URL

4. Am I approaching in a right way? if yes, then why am getting invalid URL error?

5. My code:
>
 
Saifuddin Merchant
Ranch Hand
Posts: 607
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The approach is correct. I assume you are no longer getting the struts error -- but getting back a response. Its hard to say why it is returning an invalid response without knowing the parameters the Prepayment is expecting ...

I probably reckon it a problem with the parameter being passed...check out what is being passed...
 
Farakh khan
Ranch Hand
Posts: 850
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Sam Mercs wrote:The approach is correct. I assume you are no longer getting the struts error -- but getting back a response. Its hard to say why it is returning an invalid response without knowing the parameters the Prepayment is expecting ...

I probably reckon it a problem with the parameter being passed...check out what is being passed...



Please check the posted sample code in of PHP provided by the bank in my first post. I am trying to convert it in Java

Thanks & best regards
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic