Results 1 to 4 of 4

Thread: validation

  1. #1
    009
    009 is offline Member
    Join Date
    May 2014
    Posts
    22
    Rep Power
    0

    Default validation

    hi i have situation where i have hard coded values



    this is my use case

    i have a table called card which got list of card ,now in my java application i got validation which what certain card to be validated e,g mastro,visa,amex etc now i have problem when i create new card its throwing error because the new card is not in the hard coded values,the new card is not affected by the validation,any advice how to approch this
    Last edited by 009; 06-19-2014 at 04:01 PM.

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,086
    Rep Power
    20

    Default Re: validation

    Use a table with all the card types in it?
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  3. #3
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,079
    Rep Power
    6

    Default Re: validation

    I knew it.

    You -are- Captain Obvious. Can I have your autograph pretty please?
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,086
    Rep Power
    20

    Default Re: validation

    I'm a firm believer in not overcomplicating things...:)
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. validation
    By kskumar in forum Advanced Java
    Replies: 1
    Last Post: 11-03-2013, 11:08 AM
  2. XML validation
    By Onra in forum New To Java
    Replies: 0
    Last Post: 03-24-2011, 06:14 PM
  3. XML Validation
    By sehudson in forum XML
    Replies: 5
    Last Post: 03-21-2011, 12:38 PM
  4. VAlidation
    By chetna1982 in forum New To Java
    Replies: 2
    Last Post: 12-11-2008, 07:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •