Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-04-2008, 11:29 AM
Member
 
Join Date: Dec 2007
Posts: 28
anki1234 is on a distinguished road
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
ankit
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-04-2008, 09:15 PM
Senior Member
 
Join Date: Jun 2007
Location: Bali, ID
Posts: 100
wsaryada is on a distinguished road
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.
__________________
Website:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
- Blog:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
random string are duplicate googgoo New To Java 3 04-03-2008 11:01 AM
ZipOutputStream "duplicate entry" new_2_java New To Java 0 02-14-2008 05:28 PM
How to prevent duplicate username entry in database? anki1234 JavaServer Pages (JSP) and JSTL 4 01-09-2008 09:02 AM
Registration Servlet Java Tip Java Tips 0 12-25-2007 12:22 PM
need help checking monthlyRate entry lowpro New To Java 1 11-17-2007 06:15 AM


All times are GMT +3. The time now is 07:27 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org