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

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

?? actiondispatcher.java

?? struts的源代碼
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
        String name = "unspecified";
        Method method = null;
        try {
            method = getMethod(name);

        } catch (NoSuchMethodException e) {
            String message = messages.getMessage("dispatch.parameter",
                    mapping.getPath(),
                    mapping.getParameter());

            log.error(message);

            throw new ServletException(message);
        }

        return dispatchMethod(mapping, form, request, response, name, method);

    }

    /**
     * <p>Dispatches to the target class' cancelled method, if present, 
     * otherwise returns null. Classes utilizing <code>ActionDispatcher</code> 
     * should provide a <code>cancelled</code> method if they wish to provide 
     * behavior different than returning null.</p>
     */
    protected ActionForward cancelled(ActionMapping mapping,
                                      ActionForm form,
                                      HttpServletRequest request,
                                      HttpServletResponse response)
            throws Exception {

        // Identify if there is an "cancelled" method to be dispatched to
        String name = "cancelled";
        Method method = null;
        try {
            method = getMethod(name);

        } catch (NoSuchMethodException e) {
            return null;
        }

        return dispatchMethod(mapping, form, request, response, name, method);

    }

    // ----------------------------------------------------- Protected Methods


    /**
     * Dispatch to the specified method.
     */
    protected ActionForward dispatchMethod(ActionMapping mapping,
                                           ActionForm form,
                                           HttpServletRequest request,
                                           HttpServletResponse response,
                                           String name) throws Exception {

        // Make sure we have a valid method name to call.
        // This may be null if the user hacks the query string.
        if (name == null) {
            return this.unspecified(mapping, form, request, response);
        }

        // Identify the method object to be dispatched to
        Method method = null;
        try {
            method = getMethod(name);

        } catch (NoSuchMethodException e) {
            String message =
                    messages.getMessage("dispatch.method", mapping.getPath(), name);
            log.error(message, e);

            String userMsg =
                messages.getMessage("dispatch.method.user", mapping.getPath());
            throw new NoSuchMethodException(userMsg);
        }

        return dispatchMethod(mapping, form, request, response, name, method);

    }

    /**
     * Dispatch to the specified method.
     */
    protected ActionForward dispatchMethod(ActionMapping mapping,
                                           ActionForm form,
                                           HttpServletRequest request,
                                           HttpServletResponse response,
                                           String name,
                                           Method method) throws Exception {

        ActionForward forward = null;
        try {
            Object args[] = {mapping, form, request, response};
            forward = (ActionForward) method.invoke(actionInstance, args);

        } catch (ClassCastException e) {
            String message =
                    messages.getMessage("dispatch.return", mapping.getPath(), name);
            log.error(message, e);
            throw e;

        } catch (IllegalAccessException e) {
            String message =
                    messages.getMessage("dispatch.error", mapping.getPath(), name);
            log.error(message, e);
            throw e;

        } catch (InvocationTargetException e) {
            // Rethrow the target exception if possible so that the
            // exception handling machinery can deal with it
            Throwable t = e.getTargetException();
            if (t instanceof Exception) {
                throw ((Exception) t);
            } else {
                String message =
                        messages.getMessage("dispatch.error", mapping.getPath(), name);
                log.error(message, e);
                throw new ServletException(t);
            }
        }

        // Return the returned ActionForward instance
        return (forward);
    }


    /**
     * Introspect the current class to identify a method of the specified
     * name that accepts the same parameter types as the <code>execute</code>
     * method does.
     *
     * @param name Name of the method to be introspected
     * @throws NoSuchMethodException if no such method can be found
     */
    protected Method getMethod(String name)
            throws NoSuchMethodException {

        synchronized (methods) {
            Method method = (Method) methods.get(name);
            if (method == null) {
                method = clazz.getMethod(name, types);
                methods.put(name, method);
            }
            return (method);
        }

    }

    /**
     * <p>Returns the parameter value as influenced by the selected
     * {@link #flavor} specified for this <code>ActionDispatcher</code>.</p>
     *
     * @param mapping  The ActionMapping used to select this instance
     * @param form     The optional ActionForm bean for this request (if any)
     * @param request  The HTTP request we are processing
     * @param response The HTTP response we are creating
     * @return The <code>ActionMapping</code> parameter's value
     */
    protected String getParameter(ActionMapping mapping,
                                  ActionForm form,
                                  HttpServletRequest request,
                                  HttpServletResponse response)
            throws Exception {

        String parameter = mapping.getParameter();
        if ("".equals(parameter)) {
            parameter = null;
        }
        
        if ((parameter == null) && (flavor == DEFAULT_FLAVOR)) {
            // use "method" for DEFAULT_FLAVOR if no parameter was provided
            return "method";
        }

        if ((parameter == null) &&
                ((flavor == MAPPING_FLAVOR || flavor == DISPATCH_FLAVOR))) {
            String message =
                    messages.getMessage("dispatch.handler", mapping.getPath());

            log.error(message);

            throw new ServletException(message);
        }

        return parameter;

    }

    /**
     * Returns the method name, given a parameter's value.
     *
     * @param mapping   The ActionMapping used to select this instance
     * @param form      The optional ActionForm bean for this request (if any)
     * @param request   The HTTP request we are processing
     * @param response  The HTTP response we are creating
     * @param parameter The <code>ActionMapping</code> parameter's name
     * @return The method's name.
     */
    protected String getMethodName(ActionMapping mapping,
                                   ActionForm form,
                                   HttpServletRequest request,
                                   HttpServletResponse response,
                                   String parameter)
            throws Exception {


        // "Mapping" flavor, defaults to "method"
        if (flavor == MAPPING_FLAVOR) {
            return parameter;
        }

        // default behaviour
        return request.getParameter(parameter);
    }

    /**
     * <p>Returns <code>true</code> if the current form's cancel button was
     * pressed.  This method will check if the <code>Globals.CANCEL_KEY</code>
     * request attribute has been set, which normally occurs if the cancel
     * button generated by <strong>CancelTag</strong> was pressed by the user
     * in the current request.  If <code>true</code>, validation performed
     * by an <strong>ActionForm</strong>'s <code>validate()</code> method
     * will have been skipped by the controller servlet.</p>
     *
     * @param request The servlet request we are processing
     * @see org.apache.struts.taglib.html.CancelTag
     */
    protected boolean isCancelled(HttpServletRequest request) {

        return (request.getAttribute(Globals.CANCEL_KEY) != null);

    }

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲午夜在线电影| 国产欧美视频一区二区三区| 91高清在线观看| 综合色中文字幕| 99久久精品一区二区| 国产精品超碰97尤物18| 97久久精品人人做人人爽50路| 国产精品麻豆久久久| 不卡的看片网站| 一区二区三区不卡视频| 在线电影院国产精品| 久久国产麻豆精品| 国产天堂亚洲国产碰碰| 97国产精品videossex| 亚洲精品一二三| 欧美日韩成人高清| 韩国午夜理伦三级不卡影院| 中文字幕在线不卡一区| 日本精品裸体写真集在线观看| 九色综合狠狠综合久久| 欧美成人高清电影在线| 丁香天五香天堂综合| 亚洲欧美偷拍另类a∨色屁股| 欧美在线免费视屏| 色美美综合视频| 欧美日韩成人在线一区| 久久久不卡网国产精品二区| 1000部国产精品成人观看| 亚洲精品免费看| 狠狠色丁香久久婷婷综合_中| 精品一区二区三区香蕉蜜桃| 97精品国产露脸对白| 欧美日韩一级片在线观看| 2021久久国产精品不只是精品| 国产欧美一区二区精品婷婷| 天天影视涩香欲综合网| 狠狠狠色丁香婷婷综合激情| 成人av电影在线| 欧美亚洲丝袜传媒另类| 日本一区二区三区国色天香 | 不卡在线视频中文字幕| 色综合 综合色| 亚欧色一区w666天堂| 国产精品麻豆视频| 亚洲美女精品一区| 粉嫩av一区二区三区| 日日摸夜夜添夜夜添亚洲女人| 国产精品女人毛片| 正在播放亚洲一区| 色综合久久久久| 国产一区二区三区精品视频| 香蕉成人伊视频在线观看| 国产精品天干天干在观线| av成人动漫在线观看| 18欧美乱大交hd1984| 国产91综合网| 综合激情成人伊人| 99久久久免费精品国产一区二区| 91精品国产一区二区三区| 国产美女视频91| 久久久久久久综合日本| 不卡区在线中文字幕| 同产精品九九九| 麻豆一区二区三区| 国产成人免费9x9x人网站视频| 久久影视一区二区| 欧美一级搡bbbb搡bbbb| 欧美日韩在线观看一区二区 | 18成人在线观看| 久久久久亚洲蜜桃| 欧美大片顶级少妇| 91精品国产色综合久久| 欧美丝袜丝交足nylons图片| 一本色道久久加勒比精品| 成人丝袜18视频在线观看| 国产乱色国产精品免费视频| 国产一区二区免费视频| 黄色日韩三级电影| 捆绑变态av一区二区三区| 三级精品在线观看| 日精品一区二区| 美女视频黄免费的久久| 麻豆成人久久精品二区三区小说| 奇米在线7777在线精品| 日韩中文字幕av电影| 国产精品久久久久久久岛一牛影视 | 玉米视频成人免费看| 久久久噜噜噜久久中文字幕色伊伊| 日韩午夜激情视频| 日韩免费视频一区| 亚洲欧美精品午睡沙发| 国产日韩成人精品| 亚洲欧洲成人精品av97| 国产精品美女久久久久久久久久久| 国产精品久久久久久福利一牛影视| 亚洲欧洲美洲综合色网| 一级日本不卡的影视| 天堂成人免费av电影一区| 精品影院一区二区久久久| 韩国三级电影一区二区| 国产乱码字幕精品高清av| 不卡的电影网站| 欧美日本在线视频| 日韩精品一区在线观看| 国产日韩v精品一区二区| 成人免费一区二区三区视频| 亚洲成av人片一区二区三区| 精品亚洲aⅴ乱码一区二区三区| 国产精品亚洲综合一区在线观看| www.在线成人| 欧美日韩一卡二卡三卡 | 色哟哟一区二区三区| 欧美日韩精品免费观看视频| 久久午夜电影网| 亚洲在线成人精品| 麻豆免费精品视频| 99久久精品情趣| 欧美va亚洲va| 亚洲精品免费一二三区| 韩国精品在线观看| 欧美视频在线不卡| 国产校园另类小说区| 日韩在线一二三区| 不卡电影免费在线播放一区| 日韩欧美一级二级| 亚洲黄色尤物视频| 免费欧美在线视频| 在线亚洲免费视频| 国产欧美综合在线观看第十页 | 国产精品久久久久久福利一牛影视 | 成人激情午夜影院| 91麻豆精品国产91久久久| 中文字幕在线一区| 久草在线在线精品观看| 欧美日韩视频在线第一区 | 蜜臀91精品一区二区三区| 91亚洲男人天堂| 精品福利一区二区三区| 亚洲国产欧美日韩另类综合| 粉嫩av亚洲一区二区图片| 7777精品伊人久久久大香线蕉超级流畅 | 精品无码三级在线观看视频| 欧美性一级生活| 亚洲三级小视频| 成人免费精品视频| 欧美tickle裸体挠脚心vk| 亚洲国产精品嫩草影院| 91丨九色丨蝌蚪丨老版| 国产欧美中文在线| 精品影院一区二区久久久| 在线播放欧美女士性生活| 一区二区三区中文字幕电影 | 精品写真视频在线观看| 91精品久久久久久久99蜜桃| 亚洲一区二区三区四区在线观看 | 成人免费视频视频在线观看免费| 精品国产一区二区在线观看| 视频在线观看91| 欧美日韩一区二区三区四区五区 | 成人免费的视频| 日韩欧美一区二区免费| 日本欧美久久久久免费播放网| 欧美日韩精品是欧美日韩精品| 亚洲一区在线电影| 色婷婷综合中文久久一本| 成人欧美一区二区三区白人| 成人97人人超碰人人99| 1000精品久久久久久久久| 91在线porny国产在线看| 亚洲欧美一区二区久久| 色综合久久久久| 亚洲自拍偷拍综合| 在线国产亚洲欧美| 亚洲成av人片一区二区| 欧美福利视频一区| 蜜臀久久久久久久| 精品国产乱码久久久久久免费| 久久99精品久久久久久动态图| 精品国产自在久精品国产| 精品一区二区三区免费观看| 久久网站热最新地址| 高清视频一区二区| 亚洲日本一区二区| 色哟哟一区二区三区| 麻豆91小视频| 国产亚洲人成网站| www..com久久爱| 一区二区三区蜜桃| 欧美一级精品大片| 国产一区视频网站| 国产精品卡一卡二卡三| 欧洲一区二区三区免费视频| 亚洲图片欧美综合| 日韩欧美色电影| 国产不卡在线视频| 亚洲免费观看高清完整版在线观看熊| 在线国产亚洲欧美| 黄页视频在线91| 综合中文字幕亚洲| 欧美一级二级三级蜜桃|