2009-11-27から1日間の記事一覧
struts2-convention-pluginを使っているときに、 特定の例外が発生したらJSPへフォワードしようと思って、 <global-results> <result name="db-error" type="redirect">/errors/db-error.jsp</result> </global-results> <global-exception-mappings> <exception-mapping exception="foo.bar.DatabaseException" result="db-error"/> </exception-mapping></global-exception-mappings>