Results 1 to 2 of 2
  1. #1
    anki1234 is offline Member
    Join Date
    Dec 2007
    Rep Power

    Default Duplicate entry in registration form!!!

    Hi All,
    I have a application in struts framework which requires username password for login.If NewUser then I have a registration form to be filled by the user to register. The problem is that I am unable to stop duplicate values in the username field.I can do tat by making username as primary key in database but tat will not provide error information to user except providing error at server side.Can anybody tell me t way to do this.
    Thank u All

  2. #2
    wsaryada is offline Senior Member
    Join Date
    Jun 2007
    Bali, Indonesia
    Rep Power


    Why don't you just check whether the username has already been taken by other user? You can just query your user table for the username, if it already use then tell her or him to use another username.

Similar Threads

  1. random string are duplicate
    By googgoo in forum New To Java
    Replies: 3
    Last Post: 04-03-2008, 10:01 AM
  2. ZipOutputStream "duplicate entry"
    By new_2_java in forum New To Java
    Replies: 0
    Last Post: 02-14-2008, 04:28 PM
  3. How to prevent duplicate username entry in database?
    By anki1234 in forum JavaServer Pages (JSP) and JSTL
    Replies: 4
    Last Post: 01-09-2008, 08:02 AM
  4. Registration Servlet
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-25-2007, 11:22 AM
  5. need help checking monthlyRate entry
    By lowpro in forum New To Java
    Replies: 1
    Last Post: 11-17-2007, 05:15 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