Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Code Block
html
html
titleSample JSP using Error and Exception Values
 
<h2>An unexpected error has occured<occurred</h2>
  <p>
    Please report this error to your system administrator
    or appropriate technical support personnel.
    Thank you for your cooperation.
  </p>
  <hr/>
  <h3>Error Message</h3>
    <s:actionerror/>
    <p>
      <s:property value="%{exception.message}"/>
    </p>
    <hr/>
    <h3>Technical Details</h3>
    <p>
      <s:property value="%{exceptionStack}"/>
    </p>

Exception in constructors

Global exception mappings are designed to be used with exceptions thrown by action methods (like execute). exceptions thrown from constructors will not be handled by global exception mappings.