Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Insert record --- PLEASE HELP !!!

 
suresh pillai
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
This is Java-Oracle issue.
Iam trying to insert the record and the record gets updated only when I try to violate the unique constraint on the table. Whenever the sqlException is thrown the table gets updated.
try{
//executeUpdate statements
}catch (SQLException sqle) {
System.err.println(sqle.getMessage());
System.out.println("Error thrown :-"+sqle.toString());
response.sendRedirect(referer + "authenticate=N&" + cgistr);
}
Is this anything to do with the buffer?
 
Dana Hanna
Ranch Hand
Posts: 227
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Huh? Come back to Earth. What is your question?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic