struts2

例外をハンドリングする方法

struts.xmlの設定例 <struts> <package name="default" extends="struts-default" abstract="true"> <global-exception-mappings> <exception-mapping exception="java.sql.SQLException" result="sqlexception"/> <exception-mapping exception="java.lang.Exception" result="exception"/> </global-exception-mappings> [省略]…</package></struts>