<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>techmedia-think</author_name>
  <author_url>https://blog.hatena.ne.jp/techmedia-think/</author_url>
  <blog_title>Develop with pleasure!</blog_title>
  <blog_url>https://techmedia-think.hatenablog.com/</blog_url>
  <categories>
    <anon>Java</anon>
    <anon>Struts2</anon>
  </categories>
  <description>Struts Classicの時はAction内で発生した例外は、ExceptionHandlerで捕捉していたが、Struts2からは例外の捕捉もInterceptorが行う。 ExceptionMappingInterceptorというInterceptorがその役割をする。ちなみにこのクラスsturts-coreではなく、xwork2のjarに含まれてる。このInterceptorのおかげで、stuts.xmlに以下のように例外のマッピング定義をしておけば、定義された例外が発生した際に、定義されたresultの内容が実行される。 &lt;global-results&gt; &lt;result name…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftechmedia-think.hatenablog.com%2Fentry%2F20080531%2F1212200933&quot; title=&quot;Struts2で例外を捕捉する - Develop with pleasure!&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-05-31 11:28:53</published>
  <title>Struts2で例外を捕捉する</title>
  <type>rich</type>
  <url>https://techmedia-think.hatenablog.com/entry/20080531/1212200933</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
