Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 6 of 6

Thread: HELP! Server side validation for phone number

  1. #1
    Junior Member
    Join Date
    Feb 2011
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default HELP! Server side validation for phone number

    Hello, my name is Yuni. I need help in my assignment! Hope any kind soul could help me solve my problem!

    My problem is that whenever I type alphabet into the contact number field, there will be error. How could I solve the error by typing what code?
    I can validate the minimum input length and client side coding, but I do not know how to code in order to prevent error when typing in invalid answer.

    Below is an example of the error if I type "a" into [contact no] field.


    hi.jpg

    What should I do???

    I posted on other forums... they didnt reply me.. I was wondering is it because i provide lack of information??

    Thanks


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: HELP! Server side validation for phone number

    is it because i provide lack of information??
    You need to show the lines of code that are checking the contents of the number field.

  3. #3
    Junior Member
    Join Date
    Feb 2011
    Posts
    19
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Default Re: HELP! Server side validation for phone number

    Simply check if all chars are numbers?

  4. #4
    Junior Member
    Join Date
    Feb 2011
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: HELP! Server side validation for phone number

    2.jpg

    SORRY, I NEED SERVER SIDE VALIDATION FOR NUMBER FOR NETBEANS JSP , BUT NOT NETBEANS JAVA PROGRAMMING. THANKS!

  5. #5
    Member
    Join Date
    Mar 2011
    Posts
    198
    My Mood
    Daring
    Thanks
    7
    Thanked 4 Times in 4 Posts

    Default Re: HELP! Server side validation for phone number

    lol? Isnt it comedy when people cannot tell the difference between java and website scripting

  6. #6
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: HELP! Server side validation for phone number

    As Norm pointed out, you've provided next to no information, so I'm not sure how you expect to get advice without any context to the question. Suggested reading: How To Ask Questions The Smart Way

Similar Threads

  1. How to returned random number to original number?
    By i4ba1 in forum Algorithms & Recursion
    Replies: 2
    Last Post: March 19th, 2011, 04:35 AM
  2. InputStream Problem at Client Side
    By pavan in forum Web Frameworks
    Replies: 1
    Last Post: March 26th, 2010, 03:21 AM
  3. Error in validation.xml file while deploying in server
    By venkat.ravala in forum Web Frameworks
    Replies: 0
    Last Post: January 16th, 2010, 08:56 AM
  4. Validate in server side..
    By Ganezan in forum What's Wrong With My Code?
    Replies: 4
    Last Post: October 27th, 2009, 06:36 AM
  5. Java program to open jsp page on client side instead of server side
    By khanshakil in forum JavaServer Pages: JSP & JSTL
    Replies: 1
    Last Post: July 8th, 2009, 06:26 AM