DAO « Exception « JSP-Servlet Q&A





1. SHowing the Exception back to the JSP from DAO Layer    stackoverflow.com

From the UI , i am clickiing a function that will actually call this method inside the DAO Layer . Now please tell me how can i get access to this exception ...

2. SHowing the Exception back to the JSP from DAO Layer    coderanch.com

I personally dislike the idea of showing too much error information to the user, because most users won't be interested in a stacktrace (well...except maybe hack3rz). But on the other hand, as a developer I would like to see the whole stacktrace quick without digging into some logfiles on the server. So in order to hide details, you could throw up ...