Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 2 + Credit Card Validation

 
Nishan Patel
Ranch Hand
Posts: 689
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 689
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 689
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You David for your reply,
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic