title: How to detect the exception instance type in jsp
body: <p>How to get confirm the exceptions types in jsp. I have printed <code>Exception</code> using <strong>ex.printStackTrace(response.getWriter())</strong> method, but it is not professional way to show the exception to the user.</p>
  <p>Suppose i am getting <strong>Connection</strong> expression. it arrives the exception but it will directly writes the exception on the document of HTML. it will doesn't <em><strong>gives/return</strong></em> value. I want show the professional error to the user like <code>DB Connection Error</code> only not lot of line code.</p>