title: Error Page - how to print stack trace in JSP
body: <p>I've created exception handling in my Spring application using spring SimpleMappingExceptionResolver. Everything works fine. Now I need to somehow print the caught exception within the jsp page. Something like message and stack trace. In my jsp I've found the exception object in "exception" attribute. All I need to do is something like that:</p>
  
  <pre><code>${exception.printStackTrace()}
  </code></pre>
  
  <p>But I don't know how. Is there any way how to do that?:-)</p>
  
  <p>Thanks for any suggestion,</p>
  
  <p>Mateo</p>