When the Submit button is clicked more than once in rapid succession, multiple records are entered in DB. The Jsp page calls a method from a worker bean that inserts the record. I tried isThreadSafe="false" but it didn't work. I tried synchronizing the insert method too ... but it failed. How can this be avoided?
Pranit Saha
Ranch Hand
Joined: Sep 09, 2001
Posts: 130
posted
0
Hi, u can check it whether the data u r inserting id thr in database or not.. like if(rs.next()) { //enter data } else { //Don't } u can do this ny referencing id field.. Pranit..
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.