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 7 of 7

Thread: validate the textfield

  1. #1
    Junior Member
    Join Date
    Mar 2013
    Location
    trichy
    Posts
    28
    My Mood
    Confused
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default validate the textfield

    HI ALL

    can anyone pls help me to validate the texfield.
    example:

    i want the username textfield have to take only string value.
    if any one type an integer value,i want to tell error message through dialog box.

    Thank you


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: validate the textfield

    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Mar 2013
    Location
    trichy
    Posts
    28
    My Mood
    Confused
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Re: validate the textfield

    i did not tried anything?

    i have no idea.

    pls asist me

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: validate the textfield

    Look at using a loop to examine each character using the methods of the Character class.
    If you don't understand my answer, don't ignore it, ask a question.

  5. #5
    Junior Member
    Join Date
    Mar 2013
    Location
    trichy
    Posts
    28
    My Mood
    Confused
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Re: validate the textfield

    can you give me the code?

  6. #6
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: validate the textfield

    Sorry, You'll have to write the code yourself.
    If you don't understand my answer, don't ignore it, ask a question.

  7. #7
    Junior Member
    Join Date
    Mar 2013
    Location
    trichy
    Posts
    28
    My Mood
    Confused
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Re: validate the textfield

    thank you.

Similar Threads

  1. How do I use try-catch to validate input?
    By BiaxialPainter in forum What's Wrong With My Code?
    Replies: 2
    Last Post: April 15th, 2012, 10:59 AM
  2. How to validate username?this my register.jsp
    By surendran610 in forum JavaServer Pages: JSP & JSTL
    Replies: 2
    Last Post: August 22nd, 2011, 01:42 AM
  3. How to validate a given URL
    By HelloAll in forum AWT / Java Swing
    Replies: 2
    Last Post: March 1st, 2011, 01:25 AM
  4. java validate help??
    By zyspt in forum Java Theory & Questions
    Replies: 1
    Last Post: April 16th, 2010, 02:48 AM
  5. Validate in server side..
    By Ganezan in forum What's Wrong With My Code?
    Replies: 4
    Last Post: October 27th, 2009, 06:36 AM