This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

JavaRanch » Java Forums » Java » Servlets
Bookmark "SQL Exceptions in JSP" Watch "SQL Exceptions in JSP" New topic

SQL Exceptions in JSP

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.
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

enclose your code that performs a SQL query in a try catch block.
I agree. Here's the link:
subject: SQL Exceptions in JSP
It's not a secret anymore!