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

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

?? action.java

?? ActionServlet源碼 struts的一個步驟都有 知道本來有視頻的太大了 就沒有上傳了
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:

        return errors;
    }

    /**
     * <p>Return the user's currently selected Locale.</p>
     *
     * @param request The request we are processing
     * @return The user's currently selected Locale.
     */
    protected Locale getLocale(HttpServletRequest request) {
        return RequestUtils.getUserLocale(request, null);
    }

    /**
     * <p> Retrieves any existing messages placed in the request by previous
     * actions. This method could be called instead of creating a <code>new
     * ActionMessages()</code> at the beginning of an <code>Action</code> This
     * will prevent saveMessages() from wiping out any existing Messages </p>
     *
     * @param request The servlet request we are processing
     * @return the Messages that already exist in the request, or a new
     *         ActionMessages object if empty.
     * @since Struts 1.2.1
     */
    protected ActionMessages getMessages(HttpServletRequest request) {
        ActionMessages messages =
            (ActionMessages) request.getAttribute(Globals.MESSAGE_KEY);

        if (messages == null) {
            messages = new ActionMessages();
        }

        return messages;
    }

    /**
     * <p>Return the default message resources for the current module.</p>
     *
     * @param request The servlet request we are processing
     * @return The default message resources for the current module.
     * @since Struts 1.1
     */
    protected MessageResources getResources(HttpServletRequest request) {
        return ((MessageResources) request.getAttribute(Globals.MESSAGES_KEY));
    }

    /**
     * <p>Return the specified message resources for the current module.</p>
     *
     * @param request The servlet request we are processing
     * @param key     The key specified in the message-resources element for
     *                the requested bundle.
     * @return The specified message resource for the current module.
     * @since Struts 1.1
     */
    protected MessageResources getResources(HttpServletRequest request,
        String key) {
        // Identify the current module
        ServletContext context = getServlet().getServletContext();
        ModuleConfig moduleConfig =
            ModuleUtils.getInstance().getModuleConfig(request, context);

        // Return the requested message resources instance
        return (MessageResources) context.getAttribute(key
            + moduleConfig.getPrefix());
    }

    /**
     * <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>
     *
     * <p> Since Action 1.3.0, the mapping for a cancellable Action must also have
     * the new "cancellable" property set to true. If "cancellable" is not set, and
     * the magic Cancel token is found in the request, the standard Composable
     * Request Processor will throw an InvalidCancelException. </p>
     *
     * @param request The servlet request we are processing
     * @return <code>true</code> if the cancel button was pressed;
     *         <code>false</code> otherwise.
     */
    protected boolean isCancelled(HttpServletRequest request) {
        return (request.getAttribute(Globals.CANCEL_KEY) != null);
    }

    /**
     * <p>Return <code>true</code> if there is a transaction token stored in
     * the user's current session, and the value submitted as a request
     * parameter with this action matches it. Returns <code>false</code> under
     * any of the following circumstances:</p>
     *
     * <ul>
     *
     * <li>No session associated with this request</li>
     *
     * <li>No transaction token saved in the session</li>
     *
     * <li>No transaction token included as a request parameter</li>
     *
     * <li>The included transaction token value does not match the transaction
     * token in the user's session</li>
     *
     * </ul>
     *
     * @param request The servlet request we are processing
     * @return <code>true</code> if there is a transaction token and it is
     *         valid; <code>false</code> otherwise.
     */
    protected boolean isTokenValid(HttpServletRequest request) {
        return token.isTokenValid(request, false);
    }

    /**
     * <p>Return <code>true</code> if there is a transaction token stored in
     * the user's current session, and the value submitted as a request
     * parameter with this action matches it. Returns <code>false</code> under
     * any of the following circumstances:</p>
     *
     * <ul>
     *
     * <li>No session associated with this request</li> <li>No transaction
     * token saved in the session</li>
     *
     * <li>No transaction token included as a request parameter</li>
     *
     * <li>The included transaction token value does not match the transaction
     * token in the user's session</li>
     *
     * </ul>
     *
     * @param request The servlet request we are processing
     * @param reset   Should we reset the token after checking it?
     * @return <code>true</code> if there is a transaction token and it is
     *         valid; <code>false</code> otherwise.
     */
    protected boolean isTokenValid(HttpServletRequest request, boolean reset) {
        return token.isTokenValid(request, reset);
    }

    /**
     * <p>Reset the saved transaction token in the user's session. This
     * indicates that transactional token checking will not be needed on the
     * next request that is submitted.</p>
     *
     * @param request The servlet request we are processing
     */
    protected void resetToken(HttpServletRequest request) {
        token.resetToken(request);
    }

    /**
     * <p>Save the specified error messages keys into the appropriate request
     * attribute for use by the &lt;html:errors&gt; tag, if any messages are
     * required. Otherwise, ensure that the request attribute is not
     * created.</p>
     *
     * @param request The servlet request we are processing
     * @param errors  Error messages object
     * @since Struts 1.2
     */
    protected void saveErrors(HttpServletRequest request, ActionMessages errors) {
        // Remove any error messages attribute if none are required
        if ((errors == null) || errors.isEmpty()) {
            request.removeAttribute(Globals.ERROR_KEY);

            return;
        }

        // Save the error messages we need
        request.setAttribute(Globals.ERROR_KEY, errors);
    }

    /**
     * <p>Save the specified messages keys into the appropriate request
     * attribute for use by the &lt;html:messages&gt; tag (if messages="true"
     * is set), if any messages are required. Otherwise, ensure that the
     * request attribute is not created.</p>
     *
     * @param request  The servlet request we are processing.
     * @param messages The messages to save. <code>null</code> or empty
     *                 messages removes any existing ActionMessages in the
     *                 request.
     * @since Struts 1.1
     */
    protected void saveMessages(HttpServletRequest request,
        ActionMessages messages) {
        // Remove any messages attribute if none are required
        if ((messages == null) || messages.isEmpty()) {
            request.removeAttribute(Globals.MESSAGE_KEY);

            return;
        }

        // Save the messages we need
        request.setAttribute(Globals.MESSAGE_KEY, messages);
    }

    /**
     * <p>Save the specified messages keys into the appropriate session
     * attribute for use by the &lt;html:messages&gt; tag (if messages="true"
     * is set), if any messages are required. Otherwise, ensure that the
     * session attribute is not created.</p>
     *
     * @param session  The session to save the messages in.
     * @param messages The messages to save. <code>null</code> or empty
     *                 messages removes any existing ActionMessages in the
     *                 session.
     * @since Struts 1.2
     */
    protected void saveMessages(HttpSession session, ActionMessages messages) {
        // Remove any messages attribute if none are required
        if ((messages == null) || messages.isEmpty()) {
            session.removeAttribute(Globals.MESSAGE_KEY);

            return;
        }

        // Save the messages we need
        session.setAttribute(Globals.MESSAGE_KEY, messages);
    }

    /**
     * <p>Save the specified error messages keys into the appropriate session
     * attribute for use by the &lt;html:messages&gt; tag (if
     * messages="false") or &lt;html:errors&gt;, if any error messages are
     * required. Otherwise, ensure that the session attribute is empty.</p>
     *
     * @param session The session to save the error messages in.
     * @param errors  The error messages to save. <code>null</code> or empty
     *                messages removes any existing error ActionMessages in
     *                the session.
     * @since Struts 1.3
     */
    protected void saveErrors(HttpSession session, ActionMessages errors) {
        // Remove the error attribute if none are required
        if ((errors == null) || errors.isEmpty()) {
            session.removeAttribute(Globals.ERROR_KEY);

            return;
        }

        // Save the errors we need
        session.setAttribute(Globals.ERROR_KEY, errors);
    }

    /**
     * <p>Save a new transaction token in the user's current session, creating
     * a new session if necessary.</p>
     *
     * @param request The servlet request we are processing
     */
    protected void saveToken(HttpServletRequest request) {
        token.saveToken(request);
    }

    /**
     * <p>Set the user's currently selected <code>Locale</code> into their
     * <code>HttpSession</code>.</p>
     *
     * @param request The request we are processing
     * @param locale  The user's selected Locale to be set, or null to select
     *                the server's default Locale
     */
    protected void setLocale(HttpServletRequest request, Locale locale) {
        HttpSession session = request.getSession();

        if (locale == null) {
            locale = Locale.getDefault();
        }

        session.setAttribute(Globals.LOCALE_KEY, locale);
    }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
蜜桃久久久久久| 成人理论电影网| 成人av影院在线| 91精品中文字幕一区二区三区| 精品人伦一区二区色婷婷| 亚洲激情综合网| 国产精品一品视频| 欧美一区二区精品在线| 亚洲欧洲综合另类在线| 国产一区在线观看麻豆| 欧美电影一区二区| 亚洲三级免费观看| 国产a久久麻豆| 精品国免费一区二区三区| 怡红院av一区二区三区| 国产精品自拍毛片| 日韩免费在线观看| 日韩黄色免费电影| 欧美日韩一区二区不卡| 亚洲六月丁香色婷婷综合久久 | caoporn国产精品| 精品国产伦一区二区三区观看体验 | 日韩天堂在线观看| 亚洲最快最全在线视频| eeuss鲁片一区二区三区在线看| 国产亚洲美州欧州综合国| 日本不卡视频一二三区| 在线不卡一区二区| 亚洲成人久久影院| 欧美午夜片在线观看| 依依成人综合视频| 欧美色爱综合网| 亚洲成人tv网| 欧美高清激情brazzers| 亚洲18女电影在线观看| 欧美欧美午夜aⅴ在线观看| 亚洲国产精品影院| 欧美日韩一级二级| 免费高清在线一区| 精品福利视频一区二区三区| 精品亚洲成av人在线观看| 欧美成人精精品一区二区频| 卡一卡二国产精品| 久久欧美一区二区| av一本久道久久综合久久鬼色| 国产精品视频一二三区 | 亚洲精品欧美二区三区中文字幕| a在线欧美一区| 亚洲伊人色欲综合网| 欧美喷潮久久久xxxxx| 蜜桃久久精品一区二区| 久久久久综合网| www.色综合.com| 亚洲午夜一区二区| 日韩欧美中文字幕制服| 国产精品66部| 一区二区三区高清| 日韩一级免费一区| 国产精品18久久久久久久久| 亚洲欧洲日本在线| 欧美精品一卡两卡| 国产成人精品www牛牛影视| 国产精品国产三级国产普通话蜜臀 | 欧美国产丝袜视频| 欧美视频在线一区| 国产精品一级黄| 亚洲一二三区不卡| 久久一区二区三区四区| 色拍拍在线精品视频8848| 亚洲一区二区三区视频在线| 亚洲精品在线三区| 91久久线看在观草草青青 | 久久夜色精品国产欧美乱极品| 99视频国产精品| 蜜桃一区二区三区四区| 中文字幕一区二区三| 日韩欧美在线123| 91麻豆swag| 久久狠狠亚洲综合| 亚洲国产一区在线观看| 久久久亚洲欧洲日产国码αv| 欧美色视频一区| 国产99久久久国产精品潘金| 同产精品九九九| 最新不卡av在线| 久久久亚洲精品一区二区三区| 欧美老肥妇做.爰bbww视频| 成人夜色视频网站在线观看| 蜜臀av一区二区| 亚洲成av人片一区二区三区| 国产精品蜜臀av| 精品国产乱码久久久久久浪潮| 91久久精品一区二区三区| 国产一区二区不卡老阿姨| 午夜精品福利一区二区三区av| 国产亚洲人成网站| 91.com视频| 欧美系列一区二区| 色哟哟在线观看一区二区三区| 国产大陆a不卡| 国产真实精品久久二三区| 天堂午夜影视日韩欧美一区二区| 亚洲乱码一区二区三区在线观看| 国产精品青草综合久久久久99| 久久综合资源网| 精品入口麻豆88视频| 欧美精品在线观看播放| 91久久线看在观草草青青| 99久久精品国产观看| 成人av在线影院| 成人污污视频在线观看| 国产激情一区二区三区桃花岛亚洲| 美女网站在线免费欧美精品| 视频精品一区二区| 日韩精品一区第一页| 亚洲一区二区精品3399| 亚洲综合色网站| 亚洲va欧美va国产va天堂影院| 亚洲一区日韩精品中文字幕| 午夜久久电影网| 日韩av电影天堂| 精品一区二区免费| 国产乱码精品一区二区三| 国产黑丝在线一区二区三区| 成人午夜在线视频| bt欧美亚洲午夜电影天堂| 91丨国产丨九色丨pron| 欧美综合色免费| 欧美日韩精品久久久| 日韩写真欧美这视频| 久久综合狠狠综合| 国产精品久久一级| 亚洲国产一二三| 美女高潮久久久| 国产91精品一区二区| 91浏览器入口在线观看| 欧美性猛交xxxx乱大交退制版| 6080国产精品一区二区| 精品欧美久久久| 亚洲欧美另类小说| 日韩av电影天堂| 不卡av在线网| 欧美日韩中文另类| 久久久精品人体av艺术| 亚洲美女电影在线| 日本伊人色综合网| 成人白浆超碰人人人人| 欧美日韩在线免费视频| 精品久久久三级丝袜| 国产精品卡一卡二| 五月天激情综合| 久久国产精品色| 色呦呦一区二区三区| 精品久久99ma| 亚洲免费大片在线观看| 青青草97国产精品免费观看无弹窗版 | 亚洲一二三四在线| 国产在线视频一区二区三区| 色一情一乱一乱一91av| 日韩午夜三级在线| 国产精品美女视频| 免费看黄色91| 色8久久人人97超碰香蕉987| 欧美成人video| 亚洲黄色在线视频| 国产成人综合在线播放| 91精品国产91久久久久久一区二区| 国产精品色噜噜| 精品在线一区二区| 欧美综合一区二区| 中文字幕一区二区在线播放| 日本一道高清亚洲日美韩| 久久精品久久精品| 在线观看日韩电影| 国产精品丝袜在线| 国产在线精品一区二区三区不卡| 欧美亚洲自拍偷拍| 综合久久综合久久| 国产精品99久久久久久宅男| 日韩三级高清在线| 丝袜美腿高跟呻吟高潮一区| 色av综合在线| 专区另类欧美日韩| 成人午夜av在线| 欧美激情一区在线| 国产乱码精品一区二区三区忘忧草 | 丝袜美腿成人在线| 欧洲亚洲国产日韩| 亚洲乱码国产乱码精品精可以看 | 亚洲主播在线播放| www.色精品| 亚洲桃色在线一区| www.亚洲精品| 亚洲婷婷综合色高清在线| 国产成人亚洲综合a∨婷婷| 精品捆绑美女sm三区| 激情伊人五月天久久综合| 日韩一区二区精品葵司在线| 蜜桃在线一区二区三区| 日韩视频免费直播|