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

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

?? actionservlet.java

?? Apache struts-1.3.10 a stable version
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
        ModuleConfigFactory factoryObject = ModuleConfigFactory.createFactory();
        ModuleConfig config = factoryObject.createModuleConfig(prefix);

        // Configure the Digester instance we will use
        Digester digester = initConfigDigester();

        List urls = splitAndResolvePaths(paths);
        URL url;

        for (Iterator i = urls.iterator(); i.hasNext();) {
            url = (URL) i.next();
            digester.push(config);
            this.parseModuleConfigFile(digester, url);
        }

        getServletContext().setAttribute(Globals.MODULE_KEY
            + config.getPrefix(), config);

        return config;
    }

    /**
     * <p>Parses one module config file.</p>
     *
     * @param digester Digester instance that does the parsing
     * @param path     The path to the config file to parse.
     * @throws UnavailableException if file cannot be read or parsed
     * @since Struts 1.2
     * @deprecated use parseModuleConfigFile(Digester digester, URL url)
     *             instead
     */
    protected void parseModuleConfigFile(Digester digester, String path)
        throws UnavailableException {
        try {
            List paths = splitAndResolvePaths(path);

            if (paths.size() > 0) {
                // Get first path as was the old behavior
                URL url = (URL) paths.get(0);

                parseModuleConfigFile(digester, url);
            } else {
                throw new UnavailableException("Cannot locate path " + path);
            }
        } catch (UnavailableException ex) {
            throw ex;
        } catch (ServletException ex) {
            handleConfigException(path, ex);
        }
    }

    /**
     * <p>Parses one module config file.</p>
     *
     * @param digester Digester instance that does the parsing
     * @param url      The url to the config file to parse.
     * @throws UnavailableException if file cannot be read or parsed
     * @since Struts 1.3
     */
    protected void parseModuleConfigFile(Digester digester, URL url)
        throws UnavailableException {

        try {
            digester.parse(url);
        } catch (IOException e) {
            handleConfigException(url.toString(), e);
        } catch (SAXException e) {
            handleConfigException(url.toString(), e);
        }
    }

    /**
     * <p>Simplifies exception handling in the parseModuleConfigFile
     * method.<p>
     *
     * @param path The path to which the exception relates.
     * @param e    The exception to be wrapped and thrown.
     * @throws UnavailableException as a wrapper around Exception
     */
    private void handleConfigException(String path, Exception e)
        throws UnavailableException {
        String msg = internal.getMessage("configParse", path);

        log.error(msg, e);
        throw new UnavailableException(msg);
    }

    /**
     * <p>Handle errors related to creating an instance of the specified
     * class.</p>
     *
     * @param className The className that could not be instantiated.
     * @param e         The exception that was caught.
     * @throws ServletException to communicate the error.
     */
    private void handleCreationException(String className, Exception e)
        throws ServletException {
        String errorMessage =
            internal.getMessage("configExtends.creation", className);

        log.error(errorMessage, e);
        throw new UnavailableException(errorMessage);
    }

    /**
     * <p>General handling for exceptions caught while inheriting config
     * information.</p>
     *
     * @param configType The type of configuration object of configName.
     * @param configName The name of the config that could not be extended.
     * @param e          The exception that was caught.
     * @throws ServletException to communicate the error.
     */
    private void handleGeneralExtensionException(String configType,
        String configName, Exception e)
        throws ServletException {
        String errorMessage =
            internal.getMessage("configExtends", configType, configName);

        log.error(errorMessage, e);
        throw new UnavailableException(errorMessage);
    }

    /**
     * <p>Handle errors caused by required fields that were not
     * specified.</p>
     *
     * @param field      The name of the required field that was not found.
     * @param configType The type of configuration object of configName.
     * @param configName The name of the config that's missing the required
     *                   value.
     * @throws ServletException to communicate the error.
     */
    private void handleValueRequiredException(String field, String configType,
        String configName) throws ServletException {
        String errorMessage =
            internal.getMessage("configFieldRequired", field, configType,
                configName);

        log.error(errorMessage);
        throw new UnavailableException(errorMessage);
    }

    /**
     * <p>Initialize the plug ins for the specified module.</p>
     *
     * @param config ModuleConfig information for this module
     * @throws ServletException if initialization cannot be performed
     * @since Struts 1.1
     */
    protected void initModulePlugIns(ModuleConfig config)
        throws ServletException {
        if (log.isDebugEnabled()) {
            log.debug("Initializing module path '" + config.getPrefix()
                + "' plug ins");
        }

        PlugInConfig[] plugInConfigs = config.findPlugInConfigs();
        PlugIn[] plugIns = new PlugIn[plugInConfigs.length];

        getServletContext().setAttribute(Globals.PLUG_INS_KEY
            + config.getPrefix(), plugIns);

        for (int i = 0; i < plugIns.length; i++) {
            try {
                plugIns[i] =
                    (PlugIn) RequestUtils.applicationInstance(plugInConfigs[i]
                        .getClassName());
                BeanUtils.populate(plugIns[i], plugInConfigs[i].getProperties());

                // Pass the current plugIn config object to the PlugIn.
                // The property is set only if the plugin declares it.
                // This plugin config object is needed by Tiles
                try {
                    PropertyUtils.setProperty(plugIns[i],
                        "currentPlugInConfigObject", plugInConfigs[i]);
                } catch (Exception e) {
                    ;

                    // FIXME Whenever we fail silently, we must document a valid
                    // reason for doing so.  Why should we fail silently if a
                    // property can't be set on the plugin?

                    /**
                     * Between version 1.138-1.140 cedric made these changes.
                     * The exceptions are caught to deal with containers
                     * applying strict security. This was in response to bug
                     * #15736
                     *
                     * Recommend that we make the currentPlugInConfigObject part
                     * of the PlugIn Interface if we can, Rob
                     */
                }

                plugIns[i].init(this, config);
            } catch (ServletException e) {
                throw e;
            } catch (Exception e) {
                String errMsg =
                    internal.getMessage("plugIn.init",
                        plugInConfigs[i].getClassName());

                log(errMsg, e);
                throw new UnavailableException(errMsg);
            }
        }
    }

    /**
     * <p>Initialize the form beans for the specified module.</p>
     *
     * @param config ModuleConfig information for this module
     * @throws ServletException if initialization cannot be performed
     * @since Struts 1.3
     */
    protected void initModuleFormBeans(ModuleConfig config)
        throws ServletException {
        if (log.isDebugEnabled()) {
            log.debug("Initializing module path '" + config.getPrefix()
                + "' form beans");
        }

        // Process form bean extensions.
        FormBeanConfig[] formBeans = config.findFormBeanConfigs();

        for (int i = 0; i < formBeans.length; i++) {
            FormBeanConfig beanConfig = formBeans[i];

            processFormBeanExtension(beanConfig, config);
        }

        for (int i = 0; i < formBeans.length; i++) {
            FormBeanConfig formBean = formBeans[i];

            // Verify that required fields are all present for the form config
            if (formBean.getType() == null) {
                handleValueRequiredException("type", formBean.getName(),
                    "form bean");
            }

            // ... and the property configs
            FormPropertyConfig[] fpcs = formBean.findFormPropertyConfigs();

            for (int j = 0; j < fpcs.length; j++) {
                FormPropertyConfig property = fpcs[j];

                if (property.getType() == null) {
                    handleValueRequiredException("type", property.getName(),
                        "form property");
                }
            }

            // Force creation and registration of DynaActionFormClass instances
            // for all dynamic form beans
            if (formBean.getDynamic()) {
                formBean.getDynaActionFormClass();
            }
        }
    }

    /**
     * <p>Extend the form bean's configuration as necessary.</p>
     *
     * @param beanConfig   the configuration to process.
     * @param moduleConfig the module configuration for this module.
     * @throws ServletException if initialization cannot be performed.
     */
    protected void processFormBeanExtension(FormBeanConfig beanConfig,
        ModuleConfig moduleConfig)
        throws ServletException {
        try {
            if (!beanConfig.isExtensionProcessed()) {
                if (log.isDebugEnabled()) {
                    log.debug("Processing extensions for '"
                        + beanConfig.getName() + "'");
                }

                beanConfig =
                    processFormBeanConfigClass(beanConfig, moduleConfig);

                beanConfig.processExtends(moduleConfig);
            }
        } catch (ServletException e) {
            throw e;
        } catch (Exception e) {
            handleGeneralExtensionException("FormBeanConfig",
                beanConfig.getName(), e);
        }
    }

    /**
     * <p>Checks if the current beanConfig is using the correct class based on
     * the class of its ancestor form bean config.</p>
     *
     * @param beanConfig   The form bean to check.
     * @param moduleConfig The config for the current module.
     * @return The form bean config using the correct class as determined by
     *         the config's ancestor and its own overridden value.
     * @throws UnavailableException if an instance of the form bean config
     *                              class cannot be created.
     * @throws ServletException     on class creation error
     */
    protected FormBeanConfig processFormBeanConfigClass(
        FormBeanConfig beanConfig, ModuleConfig moduleConfig)
        throws ServletException {
        String ancestor = beanConfig.getExtends();

        if (ancestor == null) {
            // Nothing to do, then
            return beanConfig;
        }

        // Make sure that this bean is of the right class
        FormBeanConfig baseConfig = moduleConfig.findFormBeanConfig(ancestor);

        if (baseConfig == null) {
            throw new UnavailableException("Unable to find " + "form bean '"
                + ancestor + "' to extend.");
        }

        // Was our bean's class overridden already?
        if (beanConfig.getClass().equals(FormBeanConfig.class)) {
            // Ensure that our bean is using the correct class
            if (!baseConfig.getClass().equals(beanConfig.getClass())) {
                // Replace the bean with an instance of the correct class
                FormBeanConfig newBeanConfig = null;
                String baseConfigClassName = baseConfig.getClass().getName();

                try {
                    newBeanConfig =
                        (FormBeanConfig) RequestUtils.applicationInstance(baseConfigClassName);

                    // copy the values
                    BeanUtils.copyProperties(newBeanConfig, beanConfig);

                    FormPropertyConfig[] fpc =
                        beanConfig.findFormPropertyConfigs();

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
粉嫩av一区二区三区| 国产乱人伦偷精品视频不卡| 国产欧美日韩三区| 日韩精品综合一本久道在线视频| 色综合久久中文综合久久97| 成人午夜激情在线| 高清av一区二区| 欧美精品乱人伦久久久久久| 色噜噜偷拍精品综合在线| 色婷婷一区二区| 欧美日韩亚洲综合在线| 欧美日韩免费电影| 日韩三级伦理片妻子的秘密按摩| 欧美一区二区免费视频| 欧美xxxx在线观看| 国产亚洲福利社区一区| 国产精品久久一级| 一级女性全黄久久生活片免费| 亚洲高清免费视频| 国产综合色视频| 成人性生交大片免费看中文| 成人av网站在线观看| 欧美性受xxxx| 精品欧美一区二区久久| 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | 欧美性受极品xxxx喷水| 91精品在线麻豆| 久久精品人人做人人综合 | 99天天综合性| 欧美唯美清纯偷拍| 国产亚洲精品免费| 亚洲色图清纯唯美| 久久精品国产免费| 一本久久综合亚洲鲁鲁五月天 | 成人午夜视频免费看| 欧美亚洲国产怡红院影院| 日韩免费视频一区| 亚洲日本在线观看| 蜜桃视频一区二区| 91国偷自产一区二区使用方法| 日韩精品在线网站| 亚洲女与黑人做爰| 极品瑜伽女神91| 91精品福利在线| 国产亚洲欧美日韩俺去了| 性做久久久久久久免费看| 国产在线视频一区二区| 国产日韩欧美在线一区| 亚洲va韩国va欧美va精品| 成人黄色国产精品网站大全在线免费观看 | 一本大道久久a久久精二百| 91精品国产色综合久久不卡蜜臀 | 91麻豆国产福利精品| 欧美成人精品高清在线播放| 亚洲一区二区在线免费观看视频| 国产精品91xxx| 日韩无一区二区| 五月天激情综合网| 欧日韩精品视频| 一区免费观看视频| 东方aⅴ免费观看久久av| 精品日韩在线观看| 日本不卡一区二区| 欧美日韩亚洲另类| 亚洲一二三四久久| 色中色一区二区| 国产精品久久毛片a| 国产成人免费在线视频| 精品国产sm最大网站免费看| 久久成人免费电影| 欧美成人女星排名| 蜜桃久久精品一区二区| 欧美精品v国产精品v日韩精品| 亚洲午夜羞羞片| 色老头久久综合| 亚洲精品中文字幕在线观看| 色诱亚洲精品久久久久久| 1024成人网色www| 色综合久久99| 亚洲一二三四区| 欧美日韩激情一区二区三区| 日日夜夜免费精品| 69久久夜色精品国产69蝌蚪网| 婷婷中文字幕综合| 日韩一区二区三| 国产精品一区二区在线观看网站| 久久久99精品免费观看| 成人福利视频在线| 亚洲日本在线观看| 欧美片在线播放| 老司机精品视频在线| 日韩免费观看高清完整版 | 国产日韩精品一区二区三区在线| 蜜乳av一区二区| 国产欧美一区二区精品性| 99re视频精品| 午夜久久电影网| 精品福利二区三区| 成人sese在线| 亚洲成国产人片在线观看| 欧美成人国产一区二区| 国产精品1区2区3区在线观看| 中文字幕日韩av资源站| 精品视频在线免费观看| 国产一区二区三区美女| 亚洲男人都懂的| 日韩视频123| 99国产一区二区三精品乱码| 天天爽夜夜爽夜夜爽精品视频| 久久综合九色综合欧美98| 成人涩涩免费视频| 三级久久三级久久久| 中文字幕中文乱码欧美一区二区 | 激情图片小说一区| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆| 在线观看91视频| 经典一区二区三区| 亚洲国产成人精品视频| 久久久久久久综合| 欧美另类变人与禽xxxxx| 国产精品一级片在线观看| 亚洲高清不卡在线| 国产精品视频线看| 日韩欧美的一区| 在线观看日韩高清av| 成人午夜视频免费看| 日本不卡一区二区| 亚洲国产精品综合小说图片区| 国产情人综合久久777777| 欧美一级黄色片| 日本大香伊一区二区三区| 成人黄色av电影| 国产伦精品一区二区三区视频青涩| 一区二区三区波多野结衣在线观看| 日韩午夜电影在线观看| 在线视频亚洲一区| av不卡一区二区三区| 国产经典欧美精品| 久久99热狠狠色一区二区| 天天av天天翘天天综合网色鬼国产| 亚洲视频在线一区二区| 国产精品久久久久久久久免费丝袜 | 成人久久视频在线观看| 黄色成人免费在线| 极品销魂美女一区二区三区| 日韩电影在线免费| 午夜视频一区二区三区| 亚洲高清在线精品| 亚洲一级电影视频| 亚洲一区二区三区小说| 一区二区三区国产精华| 亚洲精品视频免费观看| 亚洲视频一二区| 最新中文字幕一区二区三区 | 在线观看免费成人| 色婷婷精品久久二区二区蜜臂av| www.日韩精品| 91在线视频在线| 色婷婷精品大视频在线蜜桃视频 | 日欧美一区二区| 日本中文字幕一区二区视频 | 久久综合久久鬼色中文字| 精品国产1区二区| 久久久99免费| 亚洲色图一区二区| 亚洲猫色日本管| 午夜精品视频一区| 蜜桃久久久久久久| 国产福利一区二区| 在线日韩国产精品| 欧美日本一区二区三区| 欧美电影免费观看高清完整版| 精品精品欲导航| 国产人久久人人人人爽| 伊人夜夜躁av伊人久久| 日韩成人免费在线| 国产精一区二区三区| 成人午夜精品在线| 欧美视频一二三区| 欧美一区二区三区日韩视频| www国产成人| 亚洲欧美日韩系列| 蜜桃视频在线一区| av电影天堂一区二区在线| 欧美日韩精品欧美日韩精品一 | 欧美mv日韩mv亚洲| 中文字幕在线不卡一区二区三区| 怡红院av一区二区三区| 日韩高清不卡一区| 成人av综合在线| 欧美一区二区三区四区视频| 国产精品无遮挡| 日韩国产一二三区| www.亚洲激情.com| 日韩免费视频一区| 亚洲另类一区二区| 国产主播一区二区三区| 欧美三级韩国三级日本一级| 国产蜜臀av在线一区二区三区| 亚洲国产综合色|