jQuery in Action, 2nd edition*
The moose likes Struts and the fly likes There is no Action mapped for action name prePaymentManager Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "There is no Action mapped for action name prePaymentManager" Watch "There is no Action mapped for action name prePaymentManager" New topic
Author

There is no Action mapped for action name prePaymentManager

Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 732
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

Joined: Jan 10, 2002
Posts: 61106
    
  66

Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Saifuddin Merchant
Ranch Hand

Joined: Feb 08, 2009
Posts: 605

Could you post your web.xml and struts-config.xml?

How are you exactly 'executing' your servlet code?

Cheers - Sam.
Twisters - The new age Java Quiz || My Blog
Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 732
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

Joined: Mar 22, 2008
Posts: 732
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

Joined: Feb 08, 2009
Posts: 605

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

Joined: Mar 22, 2008
Posts: 732
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: There is no Action mapped for action name prePaymentManager