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

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

?? strutscontext.java

?? struts的源代碼
?? JAVA
字號:
/*
 * 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.util;


import java.util.Locale;

import javax.faces.context.ExternalContext;
import javax.faces.context.FacesContext;
import javax.faces.event.ActionEvent;

import javax.sql.DataSource;

import org.apache.struts.Globals;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessages;
import org.apache.struts.action.ActionServlet;
import org.apache.struts.config.ModuleConfig;
import org.apache.struts.faces.Constants;
import org.apache.struts.util.MessageResources;


/**
 * <p>Context bean providing accessors for the Struts related request,
 * session, and application scope objects reated to this request.  Note
 * that this bean's methods will trigger exceptions unless there is a
 * <code>FacesContext</code> instance for this request.</p>
 */

public class StrutsContext {


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


    /**
     * <p>The <code>FacesContext</code> for the current request.</p>
     */
    private FacesContext fcontext =
        FacesContext.getCurrentInstance();


    /**
     * <p>The <code>ExternalContext</code> for the current request.</p>
     */
    private ExternalContext econtext =
        fcontext.getExternalContext();


    // ---------------------------------------------------------- Public Methods


    /**
     * <p>Return the <code>ActionEvent</code> for the current request
     * (if any).</p>
     */
    public ActionEvent getActionEvent() {

        return ((ActionEvent) econtext.getRequestMap().
                get(Constants.ACTION_EVENT_KEY));

    }


    /**
     * <p>Return the <code>ActionMapping</code> for the current
     * request (if any).</p>
     */
    public ActionMapping getActionMapping() {

        return ((ActionMapping) econtext.getRequestMap().
                get(Globals.MAPPING_KEY));

    }


    /**
     * <p>Return the <code>ActionMessages</code> instance containing
     * application error messages for this request (if any).</p>
     */
    public ActionMessages getActionMessages() {

        return ((ActionMessages) econtext.getRequestMap().
                get(Globals.MESSAGE_KEY));

    }


    /**
     * <p>Return the <code>ActionServlet</code> instance for this
     * web application.</p>
     */
    public ActionServlet getActionServlet() {

        return ((ActionServlet) econtext.getApplicationMap().
                get(Globals.ACTION_SERVLET_KEY));

    }


    /**
     * <p>Return <code>true</code> if a Boolean true value has been stored
     * in the request attribute indicating that this request has been
     * cancelled.</p>
     */
    public boolean isCancelled() {

        Object value = econtext.getRequestMap().get(Globals.CANCEL_KEY);
        if (value instanceof Boolean) {
            return (((Boolean) value).booleanValue());
        } else {
            return (false);
        }

    }


    /**
     * <p>Return the default <code>DataSource</code> instance for this
     * application (if any).</p>
     */
    public DataSource getDataSource() {

        return ((DataSource) econtext.getApplicationMap().
                get(Globals.DATA_SOURCE_KEY));

    }


    /**
     * <p>Return the exception that caused one of the Struts custom tags
     * to report a JspException (if any).</p>
     */
    public Throwable getException() {

        return ((Throwable) econtext.getRequestMap().
                get(Globals.EXCEPTION_KEY));

    }


    /**
     * <p>Return the <code>ExternalContext</code> for the current request.</p>
     */
    public ExternalContext getExternalContext() {

        return (econtext);

    }


    /**
     * <p>Return the <code>FacesContext</code> for the current request.</p>
     */
    public FacesContext getFacesContext() {

        return (fcontext);

    }


    /**
     * <p>Return the <code>Locale</code> stored in the current user's
     * session (if any) for Struts based localization.</p>
     */
    public Locale getLocale() {

        if (econtext.getSession(false) != null) {
            return ((Locale) econtext.getSessionMap().
                    get(Globals.LOCALE_KEY));
        } else {
            return (null);
        }

    }


    /**
     * <p>Return the <code>MessageResources</code> instance for the
     * application module that is processing this request (if any).</p>
     */
    public MessageResources getMessageResources() {

        return ((MessageResources) econtext.getRequestMap().
                get(Globals.MESSAGES_KEY));

    }


    /**
     * <p>Return the <code>ModuleConfig</code> for the application module
     * to which this request has been assigned (if any).</p>
     */
    public ModuleConfig getModuleConfig() {

        return ((ModuleConfig) econtext.getRequestMap().
                get(Globals.MODULE_KEY));

    }


}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
26uuu亚洲婷婷狠狠天堂| www.亚洲免费av| 偷窥国产亚洲免费视频| 18欧美亚洲精品| 久久国产成人午夜av影院| 成人h版在线观看| 国产成人免费视频一区| 色噜噜夜夜夜综合网| 国产成人综合在线播放| 欧美亚洲禁片免费| 国产日韩欧美在线一区| 欧美一区二区播放| 欧美日韩卡一卡二| 日本一区二区三区国色天香| 日韩高清电影一区| 色综合久久综合中文综合网| 国产农村妇女精品| 美女爽到高潮91| 717成人午夜免费福利电影| 国产欧美日韩视频在线观看| 美女视频网站黄色亚洲| 欧美亚洲禁片免费| 欧美国产日产图区| 不卡的电视剧免费网站有什么| 精品久久久网站| 蜜桃久久久久久久| 欧美一区二区三区四区高清| 亚洲乱码中文字幕综合| 99精品视频中文字幕| 国产精品区一区二区三区| 日本不卡视频在线观看| 99精品桃花视频在线观看| 精品精品国产高清一毛片一天堂| 欧美精品在线一区二区| 有码一区二区三区| 韩国一区二区在线观看| 欧美一区二区在线免费观看| 一区二区三区国产豹纹内裤在线 | 亚洲狠狠丁香婷婷综合久久久| 成人av资源站| 久久久久久久久99精品| 亚洲 欧美综合在线网络| 欧美日韩国产免费| 天天操天天干天天综合网| 国产成人亚洲综合色影视| 国产精品乱码人人做人人爱| 国产成人在线色| 中文字幕一区二区三区av| 97精品视频在线观看自产线路二| 日韩美女精品在线| 欧美日韩一区在线观看| 一区二区三区日韩在线观看| 欧美三级韩国三级日本三斤| 天堂蜜桃一区二区三区 | 精品亚洲欧美一区| 国产香蕉久久精品综合网| 国产1区2区3区精品美女| 日韩一区在线看| 在线免费精品视频| 2023国产精品自拍| 日本欧美韩国一区三区| 日韩精品一区二区三区老鸭窝| 欧美激情一区二区三区在线| 亚洲gay无套男同| 色综合天天综合狠狠| 五月天精品一区二区三区| 欧美成人video| 国产99精品视频| 亚洲一区二区三区四区在线免费观看 | 免费人成精品欧美精品| 久久久久久影视| 一本一本大道香蕉久在线精品 | 欧美一二三四区在线| 国产在线精品一区二区三区不卡 | 亚洲精品老司机| 国产91丝袜在线18| **性色生活片久久毛片| 94色蜜桃网一区二区三区| 久久99精品国产麻豆婷婷洗澡| 久久综合视频网| 成人午夜电影久久影院| 欧美欧美欧美欧美| www.日韩在线| 日本最新不卡在线| 亚洲少妇屁股交4| 精品国精品国产尤物美女| 91亚洲精品久久久蜜桃| 狠狠色丁香久久婷婷综| 亚洲乱码日产精品bd| 久久伊人蜜桃av一区二区| 91成人免费在线视频| 丝袜美腿成人在线| 亚洲免费在线看| 久久午夜免费电影| 欧美酷刑日本凌虐凌虐| caoporn国产精品| 国产一区二区三区精品视频| 亚洲电影视频在线| 亚洲精品视频在线观看网站| 久久精品在这里| wwwwww.欧美系列| 日韩欧美色综合网站| 欧美午夜一区二区| 99精品欧美一区二区三区小说 | 国产亚洲制服色| 欧美一区二区三区视频| 久久国产生活片100| 亚洲区小说区图片区qvod| 日韩欧美国产系列| 日韩欧美中文字幕公布| 欧美日韩国产美| 欧美午夜精品久久久久久孕妇 | 国产欧美日韩综合| 久久久久久久久久久久久女国产乱| 91精品国产欧美一区二区18 | 三级成人在线视频| 亚洲一区二区综合| 一区二区在线免费| 一区二区三区蜜桃网| 亚洲美女淫视频| 最新国产成人在线观看| 中文字幕成人在线观看| 精品久久久久久无| 欧美一区二区三区啪啪| 欧美日韩一区二区三区在线看| 国产精品人妖ts系列视频| 中文字幕精品三区| 国产精品国产三级国产aⅴ原创| 国产精品色眯眯| 亚洲欧洲在线观看av| 中文字幕一区不卡| 精品国产乱码久久久久久久| 狠狠色伊人亚洲综合成人| 亚洲自拍与偷拍| 亚洲欧美aⅴ...| 性做久久久久久| 久久精品国产99| 国产成人精品网址| 不卡av在线网| 欧美系列日韩一区| 99亚偷拍自图区亚洲| 懂色av中文一区二区三区 | 国产欧美一区二区精品性 | 欧美女孩性生活视频| 欧美一级高清片| 国产拍欧美日韩视频二区| 中文字幕成人av| 国产欧美精品一区| 51精品久久久久久久蜜臀| 国产清纯美女被跳蛋高潮一区二区久久w| 精品国产91乱码一区二区三区| 精品福利二区三区| 国产三级精品视频| 日韩欧美视频一区| www欧美成人18+| 欧美变态tickle挠乳网站| 国产精品亲子乱子伦xxxx裸| 亚洲图片自拍偷拍| 国产精品一区二区三区乱码| 99久久伊人久久99| 日韩欧美高清dvd碟片| 国产精品成人免费在线| 五月婷婷综合激情| 黄色成人免费在线| 波多野结衣中文字幕一区| 欧美精品日韩综合在线| 91免费版在线看| 91精品国产色综合久久ai换脸 | 国产成人aaa| 欧美一区二区三区视频在线| 久久久久久久精| 亚洲精品老司机| 久草这里只有精品视频| 成人三级在线视频| 日韩高清在线不卡| 国产一区二区不卡在线| 日韩精品一区第一页| 国产麻豆日韩欧美久久| 久久精品亚洲麻豆av一区二区 | 国产人成亚洲第一网站在线播放| 亚洲成人动漫av| 99久久精品国产观看| 精品国产麻豆免费人成网站| 亚洲免费视频成人| 成人网在线免费视频| 91精品国产一区二区三区| 亚洲国产视频网站| 国产麻豆一精品一av一免费| 色综合色综合色综合| 成人动漫在线一区| 韩国一区二区在线观看| 日本韩国一区二区| 久久综合狠狠综合久久激情 | 一本久久a久久精品亚洲| 国产精品久久久久国产精品日日| 99精品热视频| 视频一区二区中文字幕| 精品国产一区久久| 91网站在线播放| 亚洲va中文字幕|