I have servlet that adds a record to database and forwrds to a jsp page when i click on refresh in IE the servlet is getting executed everytime so every time same record is adding to database creating more records
Query the database before you insert and if you don't find then only insert. Do you have primary key/unique key in your table? This will automatically avoid creating duplicate rows. I have come across that session can be used to handle refresh, but I never tried.