
in the application i have provided the text filed on entering and submit the record is getting inserted. my question is i want to avoid duplicate values getting inserted. ex. i am inserting name shashi kumar with the same between them ,records get inserted ,now when i try to insert shashikumar i has to throw me an exception that the record is already there before i click on submit , i am using struts . pls help