|
I feel that u could try validating the user name with the database itself.
Once when the user finishes the registration u can have the user name in the form bean and then inside the action classe's execute method u could do the validation of this new user name with that existing in database.(using the select count query).If the name already exist's the u redirect the user to the registration page with the msg notifying him that the name already exists.
I think this will do .All the best
|