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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? facestilesrequestprocessor.java

?? struts的源代碼
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/*
 * Copyright 2002,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.faces.application;


import java.io.IOException;
import javax.faces.FactoryFinder;
import javax.faces.application.ViewHandler;
import javax.faces.component.UICommand;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.context.FacesContextFactory;
import javax.faces.event.ActionEvent;
import javax.faces.lifecycle.Lifecycle;
import javax.faces.lifecycle.LifecycleFactory;
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.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.config.FormBeanConfig;
import org.apache.struts.config.ForwardConfig;
import org.apache.struts.faces.Constants;
import org.apache.struts.faces.component.FormComponent;
import org.apache.struts.faces.util.HttpServletRequestWrapper;
import org.apache.struts.tiles.TilesRequestProcessor;


/**
 * <p>Concrete implementation of <code>RequestProcessor</code> that
 * implements the standard Struts request processing lifecycle on a
 * request that was received as an <code>ActionEvent</code> by our
 * associated <code>ActionListener</code>.  It replaces the request processor
 * instance normally configured by Struts+Tiles, so it must support non-Faces
 * requests as well.</p>
 *
 * @version $Rev: 56770 $ $Date: 2004-11-06 18:15:35 +0000 (Sat, 06 Nov 2004) $
 */

public class FacesTilesRequestProcessor extends TilesRequestProcessor {


    // ------------------------------------------------------ Instance Variables


    /**
     * <p>The log instance for this class.</p>
     */
    protected static Log log =
        LogFactory.getLog(FacesTilesRequestProcessor.class);



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


    /**
     * <p>Set up a Faces Request if we are not already processing one.  Next,
     * create a new view if the specified <code>uri</code> is different from
     * the current view identifier.  Finally, cause the new view to be
     * rendered, and call <code>FacesContext.responseComplete()</code> to
     * indicate that this has already been done.</p>
     *
     * @param uri Context-relative path to forward to
     * @param request Current page request
     * @param response Current page response
     *
     * @exception IOException if an input/output error occurs
     * @exception ServletException if a servlet error occurs
     */
    protected void doForward(String uri,
                             HttpServletRequest request,
                             HttpServletResponse response)
        throws IOException, ServletException {

        if (log.isDebugEnabled()) {
            log.debug("doForward(" + uri + ")");
        }

        // Remove the current ActionEvent (if any)
        request.removeAttribute(Constants.ACTION_EVENT_KEY);

        // Process a Struts controller request normally
        if (isStrutsRequest(uri)) {
            if (response.isCommitted()) {
                if (log.isTraceEnabled()) {
                    log.trace("  super.doInclude(" + uri + ")");
                }
                super.doInclude(uri, request, response);
            } else {
                if (log.isTraceEnabled()) {
                    log.trace("  super.doForward(" + uri + ")");
                }
                super.doForward(uri, request, response);
            }
            return;
        }

        // Create a FacesContext for this request if necessary
        LifecycleFactory lf = (LifecycleFactory)
            FactoryFinder.getFactory(FactoryFinder.LIFECYCLE_FACTORY);
        Lifecycle lifecycle = // FIXME - alternative lifecycle ids
            lf.getLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE);
        boolean created = false;
        FacesContext context = FacesContext.getCurrentInstance();
        if (context == null) {
            if (log.isTraceEnabled()) {
                log.trace("  Creating new FacesContext for '" + uri + "'");
            }
            created = true;
            FacesContextFactory fcf = (FacesContextFactory)
                FactoryFinder.getFactory(FactoryFinder.FACES_CONTEXT_FACTORY);
            HttpServletRequestWrapper wrapper = new HttpServletRequestWrapper(request, uri);
            context = fcf.getFacesContext(servlet.getServletContext(), wrapper,
                                          response, lifecycle); 
            // Comment out the previous three lines and uncomment
            // the following two lines to test eliminating the wrapper
            // context = fcf.getFacesContext(servlet.getServletContext(),
            //                               request, response, lifecycle);
        }

        // Create a new view root
        ViewHandler vh = context.getApplication().getViewHandler();
        if (log.isTraceEnabled()) {
            log.trace("  Creating new view for '" + uri + "'");
        }
        context.setViewRoot(vh.createView(context, uri));

        // Cause the view to be rendered
        if (log.isTraceEnabled()) {
            log.trace("  Rendering view for '" + uri + "'");
        }
        lifecycle.render(context);
        if (created) {
            if (log.isTraceEnabled()) {
                log.trace("  Releasing context for '" + uri + "'");
            }
            context.release();
        } else {
            if (log.isTraceEnabled()) {
                log.trace("  Rendering completed");
            }
        }

    }


    // Override default processing to provide logging
    protected void internalModuleRelativeForward
        (String uri, HttpServletRequest request, HttpServletResponse response)
        throws IOException, ServletException {

        if (log.isTraceEnabled()) {
            log.trace("Performing internal module relative forward to '" +
                      uri + "'");
        }
        super.internalModuleRelativeForward(uri, request, response);

    }


    // Override default processing to provide logging
    protected Action processActionCreate(HttpServletRequest request,
                                         HttpServletResponse response,
                                         ActionMapping mapping)
        throws IOException {

        if (log.isTraceEnabled()) {
            log.trace("Performing standard action create");
        }
        Action result = super.processActionCreate(request, response, mapping);
        if (log.isDebugEnabled()) {
            log.debug("Standard action create returned " +
                      result.getClass().getName() + " instance");
        }
        return (result);

    }


    // Override default processing to provide logging
    protected ActionForm processActionForm(HttpServletRequest request,
                                           HttpServletResponse response,
                                           ActionMapping mapping) {
        if (log.isTraceEnabled()) {
            log.trace("Performing standard action form processing");
            String attribute = mapping.getAttribute();
            if (attribute != null) {
                String name = mapping.getName();
                FormBeanConfig fbc = moduleConfig.findFormBeanConfig(name);
                if (fbc != null) {
                    if ("request".equals(mapping.getScope())) {
                        log.trace("  Bean in request scope = " +
                                  request.getAttribute(attribute));
                    } else {
                        log.trace("  Bean in session scope = " +
                                  request.getSession().getAttribute(attribute));
                    }
                } else {
                    log.trace("  No FormBeanConfig for '" + name + "'");
                }
            } else {
                log.trace("  No form bean for this action");
            }
        }
        ActionForm result =
            super.processActionForm(request, response, mapping);
        if (log.isDebugEnabled()) {
            log.debug("Standard action form returned " +
                      result);
        }
        return (result);
        

    }

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品国产手机| 亚洲欧洲性图库| 亚洲国产精品久久人人爱蜜臀 | 国产精品三级电影| 五月激情综合婷婷| 884aa四虎影成人精品一区| 亚洲一区在线观看免费观看电影高清| 成人免费毛片a| 中文字幕亚洲欧美在线不卡| 国产91清纯白嫩初高中在线观看| 久久夜色精品国产噜噜av| 国模套图日韩精品一区二区 | 欧美在线999| 天堂久久一区二区三区| 欧美一区二区三区性视频| 裸体健美xxxx欧美裸体表演| 欧美精品一区二区三区四区| 国产一本一道久久香蕉| 亚洲人成在线播放网站岛国 | 男人操女人的视频在线观看欧美| 91精品国产综合久久久久久久| 九九**精品视频免费播放| 久久女同精品一区二区| 色哟哟在线观看一区二区三区| 亚洲成人黄色小说| 2023国产精品| 一本大道久久精品懂色aⅴ| 亚洲成人综合在线| 国产精品少妇自拍| 欧美一区二区三区视频在线| av成人免费在线| 久久国产精品99久久人人澡| 悠悠色在线精品| 久久精品一级爱片| 欧美三级韩国三级日本三斤| 国产制服丝袜一区| 亚洲电影一级黄| 亚洲免费看黄网站| 国产精品家庭影院| 久久久五月婷婷| 欧美精品一区二区三区蜜臀| 欧美性欧美巨大黑白大战| eeuss鲁片一区二区三区在线观看| 日本视频在线一区| 性久久久久久久久久久久| 中文字幕五月欧美| 中文字幕av不卡| 日本一区二区综合亚洲| 精品日韩一区二区| 日韩欧美中文字幕一区| 日韩一级视频免费观看在线| 91精品国产一区二区三区蜜臀| 精品视频全国免费看| 91一区二区在线观看| 日本高清免费不卡视频| www.亚洲国产| 成人激情图片网| 色狠狠一区二区| 欧美日韩精品三区| 欧美成人欧美edvon| 久久久久久久综合狠狠综合| 国产视频亚洲色图| 亚洲日韩欧美一区二区在线| 亚洲精品乱码久久久久久久久| 亚洲三级久久久| 日韩成人av影视| 国产成人免费在线观看不卡| av成人老司机| 69p69国产精品| 久久免费看少妇高潮| 久久精品夜夜夜夜久久| 亚洲精品免费视频| 精彩视频一区二区| 欧美亚洲精品一区| 日本一区二区三区国色天香| 亚洲欧美日本韩国| 国产精品一区三区| 欧美一区二区黄色| 亚洲区小说区图片区qvod| 奇米影视7777精品一区二区| 成人国产在线观看| 欧美一区二区三区不卡| 国产精品国产三级国产普通话三级 | 91精品蜜臀在线一区尤物| 精品国产一区二区三区四区四 | 4hu四虎永久在线影院成人| 国产色91在线| 麻豆freexxxx性91精品| 欧美天天综合网| 一区二区三区欧美| 99久久综合色| 久久久久99精品一区| 久久99国产精品尤物| 日本精品免费观看高清观看| 国产精品三级av| 国产精品一区二区视频| 欧美精品一区二区三区高清aⅴ| 五月婷婷综合激情| 欧美性猛交xxxx黑人交| 亚洲成人自拍偷拍| 欧美日韩精品一区二区三区 | 亚洲一区二区美女| 色欲综合视频天天天| 一区二区三区在线视频免费观看| aaa欧美日韩| 亚洲欧美日韩电影| 欧美日韩第一区日日骚| 爽爽淫人综合网网站| 欧美一卡在线观看| 激情综合色播五月| 欧美一区二区三区白人| 久久成人免费电影| 中文字幕乱码日本亚洲一区二区 | 17c精品麻豆一区二区免费| 99久久久无码国产精品| 亚洲综合丝袜美腿| 日韩欧美一区中文| 99久久国产免费看| 亚洲成av人片在线观看无码| 精品久久国产老人久久综合| 成人sese在线| 美女视频免费一区| 亚洲人成影院在线观看| 日韩欧美国产一区二区三区| 成人伦理片在线| 五月婷婷色综合| 成人免费在线播放视频| 在线综合+亚洲+欧美中文字幕| 国产精品一二三四区| 丝袜亚洲精品中文字幕一区| 中文字幕亚洲电影| 久久综合九色综合久久久精品综合| 91一区二区三区在线播放| 精品一区二区影视| 视频一区免费在线观看| 亚洲男人天堂av| 国产日韩高清在线| 欧美成人aa大片| 日韩一区二区三区四区| 欧美日韩色一区| 欧美日韩国产成人在线91| 91视频免费播放| 91在线观看一区二区| 国产成人av网站| 国产综合色在线| 国产在线一区观看| 激情深爱一区二区| 国模少妇一区二区三区| 精品一区二区三区的国产在线播放 | www.亚洲免费av| aaa欧美色吧激情视频| 91一区二区三区在线观看| 不卡一二三区首页| 91国在线观看| 欧美日本一区二区| 91精品婷婷国产综合久久性色| 欧美日韩亚洲另类| 91精品久久久久久蜜臀| 欧美一级理论片| 国产女同性恋一区二区| 亚洲视频在线一区| 亚洲综合色在线| 久久精品国产精品青草| 国产东北露脸精品视频| 色哟哟一区二区| 91精品久久久久久久久99蜜臂| 精品国产91亚洲一区二区三区婷婷| 2017欧美狠狠色| 自拍偷拍欧美激情| 免费在线观看一区| av在线播放成人| 欧美大尺度电影在线| 中文字幕欧美日韩一区| 亚洲国产日韩精品| 国产成人免费9x9x人网站视频| 一本色道**综合亚洲精品蜜桃冫| 91精品国产综合久久蜜臀| 国产色一区二区| 久久99精品国产.久久久久久| 97久久超碰国产精品| 国产欧美一区二区精品婷婷| 麻豆精品视频在线| 欧美午夜精品理论片a级按摩| 中文一区二区在线观看| 久久国产精品色婷婷| 91精品国产福利在线观看| 亚洲欧美色综合| 99riav久久精品riav| 亚洲欧洲av另类| 91蜜桃传媒精品久久久一区二区| 国产亚洲一二三区| 国产ts人妖一区二区| 国产欧美一二三区| 成人精品一区二区三区四区 | 欧美日韩精品一二三区| 亚洲伊人伊色伊影伊综合网| 在线看日本不卡| 天堂久久一区二区三区| 91精品在线免费观看| 国产综合色在线视频区|