亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? exceptionhandler.java

?? 這是STRUTS1.2。6的開發包。。這是我從芝APACHE網站下下來
?? JAVA
字號:
/*
 * $Id: ExceptionHandler.java 54929 2004-10-16 16:38:42Z germuska $ 
 *
 * Copyright 2001-2004 The Apache Software Foundation.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
 
package org.apache.struts.action;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.struts.Globals;
import org.apache.struts.config.ExceptionConfig;
import org.apache.struts.util.MessageResources;
import org.apache.struts.util.ModuleException;

/**
 * <p>An <strong>ExceptionHandler</strong> is configured in the Struts
 * configuration file to handle a specific type of exception thrown
 * by an <code>Action.execute</code> method.</p>
 * 
 * @since Struts 1.1
 */
public class ExceptionHandler {
    

    /**
     * <p>Commons logging instance.</p>
     */
    private static final Log log = LogFactory.getLog(ExceptionHandler.class);
    

    /**
     * <p>The message resources for this package.</p>
     */
    private static MessageResources messages =
        MessageResources.getMessageResources(
            "org.apache.struts.action.LocalStrings");
    

    /**
     * <p>Handle the <code>Exception</code>.
     * Return the <code>ActionForward</code> instance (if any) returned by
     * the called <code>ExceptionHandler</code>.
     *
     * @param ex The exception to handle
     * @param ae The ExceptionConfig corresponding to the exception
     * @param mapping The ActionMapping we are processing
     * @param formInstance The ActionForm we are processing
     * @param request The servlet request we are processing
     * @param response The servlet response we are creating
     *
     * @exception ServletException if a servlet exception occurs
     *
     * @since Struts 1.1
     */
    public ActionForward execute(
        Exception ex,
        ExceptionConfig ae,
        ActionMapping mapping,
        ActionForm formInstance,
        HttpServletRequest request,
        HttpServletResponse response)
        throws ServletException {

        ActionForward forward = null;
        ActionMessage error = null;
        String property = null;

        // Build the forward from the exception mapping if it exists
        // or from the form input
        if (ae.getPath() != null) {
            forward = new ActionForward(ae.getPath());
        } else {
            forward = mapping.getInputForward();
        }

        // Figure out the error
        if (ex instanceof ModuleException) {
            error = ((ModuleException) ex).getActionMessage();
            property = ((ModuleException) ex).getProperty();
        } else {
            error = new ActionMessage(ae.getKey(), ex.getMessage());
            property = error.getKey();
        }

        this.logException(ex);

        // Store the exception
        request.setAttribute(Globals.EXCEPTION_KEY, ex);
        this.storeException(request, property, error, forward, ae.getScope());

        return forward;

    }


    /**
     * <p>Logs the <code>Exception</code> using commons-logging.</p>
     * @param e The Exception to log.
     * @since Struts 1.2
     */
    protected void logException(Exception e){

        log.debug(messages.getMessage("exception.log"), e);

    }


    /**
     * <p>Default implementation for handling an <code>ActionError</code> generated
     * from an <code>Exception</code> during <code>Action</code> delegation. The default
     * implementation is to set an attribute of the request or session, as
     * defined by the scope provided (the scope from the exception mapping). An
     * <code>ActionErrors</code> instance is created, the error is added to the collection
     * and the collection is set under the <code>Globals.ERROR_KEY</code>.</p>
     *
     * @param request The request we are handling
     * @param property The property name to use for this error
     * @param error The error generated from the exception mapping
     * @param forward The forward generated from the input path (from the form or exception mapping)
     * @param scope The scope of the exception mapping.
     * @deprecated Use storeException(HttpServletRequest, String, ActionMessage, ActionForward, String)
     * instead. This will be removed after Struts 1.2.
     */
    protected void storeException(
        HttpServletRequest request,
        String property,
        ActionError error,
        ActionForward forward,
        String scope) {

        this.storeException(request, property, (ActionMessage) error, forward, scope);
        // :TODO: Remove after Struts 1.2

    }


    /**
     * <p>Default implementation for handling an <code>ActionMessage</code> generated
     * from an <code>Exception</code> during <code>Action</code> delegation. The default
     * implementation is to set an attribute of the request or session, as
     * defined by the scope provided (the scope from the exception mapping). An
     * <code>ActionMessages</code> instance is created, the error is added to the
     * collection and the collection is set under the <code>Globals.ERROR_KEY</code>.</p>
     *
     * @param request The request we are handling
     * @param property The property name to use for this error
     * @param error The error generated from the exception mapping
     * @param forward The forward generated from the input path (from the form or exception mapping)
     * @param scope The scope of the exception mapping.
     * @since Struts 1.2
     */
    protected void storeException(
        HttpServletRequest request,
        String property,
        ActionMessage error,
        ActionForward forward,
        String scope) {

        ActionMessages errors = new ActionMessages();
        errors.add(property, error);

        if ("request".equals(scope)) {
            request.setAttribute(Globals.ERROR_KEY, errors);
        } else {
            request.getSession().setAttribute(Globals.ERROR_KEY, errors);
        }
    }

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品国产综合久久小美女| 岛国精品在线播放| 欧美日韩国产一级| 日本伊人午夜精品| 久久午夜色播影院免费高清 | 一区二区三区鲁丝不卡| 色综合久久综合网97色综合| 亚洲在线成人精品| 日韩视频123| av不卡一区二区三区| 亚洲图片欧美一区| 久久久久久一级片| 日本高清成人免费播放| 久久国产精品99精品国产| 亚洲国产岛国毛片在线| 日本精品视频一区二区三区| 麻豆成人综合网| 亚洲欧洲在线观看av| 欧美理论片在线| 成人一区二区三区中文字幕| 亚洲已满18点击进入久久| 精品美女一区二区| 色综合一区二区| 蜜桃av一区二区三区电影| 国产精品久久久久一区二区三区共| 在线一区二区视频| 国产乱子轮精品视频| 亚洲综合色婷婷| 国产欧美综合在线| 91麻豆精品国产91久久久| 菠萝蜜视频在线观看一区| 日韩高清在线观看| 国产精品无人区| 欧美一区二区精品| 99久久精品99国产精品| 久久精品国产99国产精品| 亚洲另类在线一区| 国产亚洲精品aa午夜观看| 欧美高清视频一二三区 | 成人免费毛片嘿嘿连载视频| 婷婷久久综合九色国产成人| 国产偷国产偷亚洲高清人白洁| 欧美视频在线播放| 成人av免费在线播放| 免费人成在线不卡| 亚洲综合男人的天堂| 国产欧美日韩激情| 精品国产一区二区在线观看| 色欧美乱欧美15图片| 成人黄色av电影| 激情图区综合网| 婷婷久久综合九色国产成人 | 欧美精品一区二区三区四区 | a在线欧美一区| 精品一区二区三区在线播放| 图片区小说区国产精品视频| 成人欧美一区二区三区1314| 国产欧美在线观看一区| 精品久久久久久久久久久久久久久久久 | 蜜桃精品视频在线| 日日摸夜夜添夜夜添精品视频| 国产精品久久久久久亚洲伦| 国产日韩欧美一区二区三区乱码| 欧美一级日韩一级| 欧美日韩久久一区二区| 色婷婷狠狠综合| 在线日韩国产精品| 色综合色综合色综合色综合色综合| 国产乱对白刺激视频不卡| 激情亚洲综合在线| 蜜桃视频在线观看一区二区| 麻豆一区二区在线| 青青国产91久久久久久| 日本美女一区二区三区视频| 日韩电影在线观看一区| 亚洲成人黄色影院| 国产精品12区| 狠狠色综合播放一区二区| 久热成人在线视频| 热久久国产精品| 蜜桃视频在线观看一区二区| 精品午夜一区二区三区在线观看| 日日噜噜夜夜狠狠视频欧美人| 三级不卡在线观看| 美女视频网站黄色亚洲| 国产激情91久久精品导航| 成人av网址在线| 色国产综合视频| 欧美男男青年gay1069videost| 911精品国产一区二区在线| 欧美哺乳videos| 久久久99精品久久| 中文天堂在线一区| 亚洲免费观看高清| 婷婷亚洲久悠悠色悠在线播放| 久久草av在线| 福利一区二区在线| 一本色道**综合亚洲精品蜜桃冫| 欧美年轻男男videosbes| 欧美一级黄色片| 久久一区二区三区国产精品| 国产精品不卡在线观看| 五月激情综合网| 国产一区二区看久久| av毛片久久久久**hd| 欧美日韩一区二区三区视频| 精品卡一卡二卡三卡四在线| 国产精品久久久久久久久免费樱桃| 亚洲最大的成人av| 九九精品一区二区| 91黄色小视频| 精品国产凹凸成av人导航| 日韩一区日韩二区| 日本成人在线不卡视频| 成人av在线资源网| 7777精品伊人久久久大香线蕉完整版| 久久久久高清精品| 亚洲午夜久久久久久久久久久| 国产一区二三区| 欧美日韩精品一区二区| 久久你懂得1024| 五月综合激情日本mⅴ| 成人高清视频免费观看| 日韩亚洲欧美中文三级| 亚洲欧洲日韩综合一区二区| 奇米影视7777精品一区二区| 99热精品一区二区| 精品国产91乱码一区二区三区| 亚洲精品午夜久久久| 国产电影一区在线| 91精品啪在线观看国产60岁| 中文字幕日韩欧美一区二区三区| 奇米精品一区二区三区在线观看 | 欧美韩日一区二区三区| 欧美aaaaaa午夜精品| 在线免费不卡视频| 日本一区二区三区在线不卡| 美女在线视频一区| 欧美日韩激情在线| 亚洲精品视频自拍| av成人免费在线| 国产三级精品视频| 九色综合狠狠综合久久| 欧美蜜桃一区二区三区| 亚洲精品大片www| a4yy欧美一区二区三区| 日本一区二区三区高清不卡| 久久国产精品免费| 日韩一区和二区| 天堂成人国产精品一区| 在线看国产一区二区| 亚洲欧美另类综合偷拍| jvid福利写真一区二区三区| 久久久精品中文字幕麻豆发布| 久久精品国产精品亚洲综合| 欧美一区二区三区性视频| 五月婷婷综合激情| 欧美日韩高清影院| 午夜精品福利一区二区三区蜜桃| 91黄视频在线观看| 夜夜爽夜夜爽精品视频| 91精品福利视频| 亚洲电影一级片| 欧美亚洲日本国产| 五月综合激情婷婷六月色窝| 欧美日韩国产欧美日美国产精品| 亚洲一区视频在线| 欧美日韩亚洲综合一区二区三区| 亚洲一卡二卡三卡四卡无卡久久| 在线亚洲+欧美+日本专区| 一区二区三区精品| 3d成人动漫网站| 久久爱www久久做| 精品久久久久久久久久久院品网 | www.亚洲在线| 玉米视频成人免费看| 欧美日韩中字一区| 蜜臀av性久久久久蜜臀aⅴ四虎 | 成人激情动漫在线观看| 中文字幕一区二区日韩精品绯色| 99re视频这里只有精品| 亚洲成a人片在线观看中文| 91.com在线观看| 国内偷窥港台综合视频在线播放| 国产婷婷色一区二区三区 | 香蕉久久夜色精品国产使用方法| 91精品国产手机| 国产另类ts人妖一区二区| 亚洲欧美综合网| 欧美日韩国产中文| 国产一区二区三区蝌蚪| 亚洲日本一区二区| 在线播放一区二区三区| 国内精品免费在线观看| 亚洲欧美国产三级| 欧美一级专区免费大片| 丁香天五香天堂综合| 视频一区二区中文字幕| 国产日产精品一区| 欧美视频在线观看一区二区|