Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

There is no Action mapped for action name prePaymentManager

 
Farakh khan
Ranch Hand
Posts: 833
  • Mark post as helpful
  • send pies
  • 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
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65335
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.
 
Saifuddin Merchant
Ranch Hand
Posts: 607
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • 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: 833
  • Mark post as helpful
  • send pies
  • 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: 833
  • Mark post as helpful
  • send pies
  • 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 Java Spring
  • Mark post as helpful
  • send pies
  • 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: 833
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic