wood burning stoves 2.0*
The moose likes Servlets and the fly likes SQL Exceptions in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "SQL Exceptions in JSP" Watch "SQL Exceptions in JSP" New topic
Author

SQL Exceptions in JSP

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
How do you catch SQL errors. If a SQL error occurs the message returned is a very vague ugly message. Is there a way a more meaningful, better presented message could be viewed.
Thanks.
Joy
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

enclose your code that performs a SQL query in a try catch block.
eg:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SQL Exceptions in JSP
 
Similar Threads
desc command in java
PreparedStatement-Statement
Specific SQLException
Non supported character set: oracle-character-set-178
Error executing sql statement