i set the field to unique in mysql database.
when i input data into the field, the alert message shown in mysql: can't insert duplicate value for that field.
but when i input same data in that field from
jsp and then submit form
i would like to ask why the code don't fall to exception as i use
try{
update sql statement here...
return "updated";
}
catch(exception e){
return e.toString();
}
but actually, the data has not been updataed.
but can't fall to exception area?
why?