aspose file tools*
The moose likes Struts and the fly likes Struts 2 + Credit Card Validation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 + Credit Card Validation" Watch "Struts 2 + Credit Card Validation" New topic
Author

Struts 2 + Credit Card Validation

Nishan Patel
Ranch Hand

Joined: Sep 07, 2008
Posts: 684

Hello Friends,

I have one problem with credit card validation.In struts 1.3 we have framework in built validation facility to validate credit card.

But i am using Struts 2.0 and having to validate credit card.

Please let me know how to solve with Struts 2.0.


Thanks, Nishan Patel
SCJP 1.5, SCWCD 1.5, OCPJWSD Java Developer,My Blog
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

S2 doesn't currently ship with a credit card validator.

It is, however, trivial to write your own server-side validators.

On the client side it's not as straight-forward until I get the hack in to allow user-written client-side validators, although they won't be configured like the default built-in ones are; you'll just register them with the existing client-side validation code per-page.

I hope to get it in before the S2.1.3 release, but may not have the time. I'll also provide a patch and documentation so it can be used with existing versions.
Nishan Patel
Ranch Hand

Joined: Sep 07, 2008
Posts: 684

Thank You David,

Currently I have been working on one Auction Project and this project have facility to transfer online balance, deposit money to PayPal Account so i want to validate credit card.

But in one thing I need you favor I have integrate PayPal SDK for transfer money and deposit money to user's account but in local it transfer once and now it gives internal error So, can you please tell me why PayPal transaction done only once. And now gives us to internal error.Help me ASAP.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I have no clue why your PayPal transaction isn't working; you'd be better off asking that one on a PayPal-related support forum or list.
Nishan Patel
Ranch Hand

Joined: Sep 07, 2008
Posts: 684

Thank You David for your reply,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts 2 + Credit Card Validation
 
Similar Threads
Validation using Regex
Validation.xml
Implementation of Credit Card transaction
Validation.xml
Credit card validation in a webapp