package sample.exception;
import javax.servlet.http.*;
import javax.servlet.*;
import org.apache.struts.action.*;
import org.apache.struts.config.*;
public class SampleExceptionHandler extends ExceptionHandler {
public ActionForward execute(Exception ex,
ExceptionConfig config,
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws ServletException {
System.out.println("例外後処理!!");
// 次画面遷移情報を取得する
ActionForward fw
= super.execute(ex, config, mapping, form, request, response);
return fw;
} }
|