At the first there is a jsp page where the registration is done.In the registration all the details such as project title and mark secured is obtained.After that tha control is transfered to servlet page.There is a database which keeps records of all the enteries of the user.On the other part what i require is that if people enter the same title then calculation must be done and only the one with the highest mark gets the title and only his details are entered in the other database where as the others have to register again. Another option like only few say 10 people are allowed to register for a topic