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

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

?? action.java

?? Apache struts-1.3.10 a stable version
?? 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);
    }
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美网站大全在线观看| 欧美日本在线播放| 日韩在线卡一卡二| 国产蜜臀97一区二区三区| 欧美精品高清视频| 色综合欧美在线视频区| 激情久久五月天| 亚洲国产wwwccc36天堂| 中文字幕一区二区三区四区不卡| 日韩一级片网址| 在线观看国产一区二区| 成人国产精品免费| 国产精品1区2区| 久久国产精品99久久人人澡| 亚洲一区中文日韩| 亚洲欧洲www| 日本一区免费视频| 精品国产乱码久久久久久牛牛| 欧美网站大全在线观看| 91麻豆福利精品推荐| 大白屁股一区二区视频| 久久精品国产精品青草| 日韩avvvv在线播放| 亚洲国产成人va在线观看天堂| 国产精品黄色在线观看| 国产人成一区二区三区影院| 亚洲欧美日韩在线不卡| 国产精品亲子伦对白| 久久久精品国产99久久精品芒果 | 蜜桃91丨九色丨蝌蚪91桃色| 一区二区三区欧美激情| 自拍偷自拍亚洲精品播放| 国产精品视频第一区| 国产女同互慰高潮91漫画| 2020国产精品自拍| 久久综合色鬼综合色| 日韩女优av电影在线观看| 日韩欧美黄色影院| 精品少妇一区二区三区免费观看 | 极品销魂美女一区二区三区| 视频在线观看一区| 日本不卡一二三| 毛片av中文字幕一区二区| 蜜臀久久久久久久| 久久99久久99| 国产一区二区三区av电影| 国产精品1区2区3区| 成人国产精品免费网站| 色久综合一二码| 欧美日韩中文一区| 日韩视频一区二区三区在线播放| 日韩欧美一区二区不卡| 久久众筹精品私拍模特| 国产欧美一区二区三区沐欲| 国产精品国产三级国产aⅴ中文| 亚洲特黄一级片| 亚洲一区在线视频观看| 欧美a级理论片| 黄页网站大全一区二区| 国产精品亚洲视频| 91麻豆免费观看| 51精品秘密在线观看| 日韩精品一区二区三区在线观看| 精品剧情在线观看| 国产精品伦一区二区三级视频| 亚洲欧美日韩中文字幕一区二区三区| 一区二区三区在线观看网站| 日韩国产精品久久| 粉嫩一区二区三区性色av| 日韩精品中文字幕在线不卡尤物| 国产欧美视频一区二区| 亚洲女同一区二区| 美女www一区二区| 成人免费看视频| 欧美亚洲动漫制服丝袜| 日韩精品一区二区在线观看| 国产精品久久久久影院| 亚洲国产乱码最新视频| 国产一区二区福利视频| 色综合久久久久综合体桃花网| 51午夜精品国产| 国产精品久久久久久久浪潮网站| 亚洲图片有声小说| 高清国产午夜精品久久久久久| 色狠狠桃花综合| 欧美成人性战久久| 一区二区三区免费网站| 麻豆中文一区二区| 在线免费观看成人短视频| 日韩精品中文字幕在线不卡尤物| 亚洲天堂久久久久久久| 麻豆成人av在线| 色狠狠一区二区三区香蕉| 欧美精品一区二区在线观看| 一区二区在线免费| 高清不卡在线观看| 欧美一级免费观看| 亚洲美女屁股眼交| 国产91丝袜在线18| 欧美xxxx老人做受| 亚洲午夜av在线| www.日本不卡| 久久网这里都是精品| 日韩综合小视频| 色偷偷成人一区二区三区91| xnxx国产精品| 青草国产精品久久久久久| 国内精品不卡在线| 欧美大片国产精品| 日韩美女主播在线视频一区二区三区| 亚洲精品成a人| 成人动漫一区二区三区| 久久影院电视剧免费观看| 午夜精品久久久久久| 色婷婷综合久久久| 亚洲欧洲99久久| 欧美日韩免费观看一区三区| 亚洲欧洲制服丝袜| 成人app下载| 亚洲国产精品高清| 国产一区二区三区久久悠悠色av| 日韩午夜电影av| 免费观看成人鲁鲁鲁鲁鲁视频| 欧美日韩国产高清一区二区| 亚洲国产美国国产综合一区二区| 91美女福利视频| 亚洲精品成人在线| 在线欧美日韩精品| 亚洲午夜激情网站| 欧美日韩精品免费观看视频| 亚洲一区二区三区视频在线 | 色综合久久久久网| 中文字幕亚洲在| 波多野结衣精品在线| 中文字幕一区二区三区精华液 | 精品视频1区2区| 亚洲一级电影视频| 欧美色综合久久| 三级一区在线视频先锋| 欧美精品日韩综合在线| 日韩精品一级中文字幕精品视频免费观看| 91福利在线免费观看| 亚洲乱码国产乱码精品精98午夜 | 美女视频黄免费的久久| 欧美一区二区成人6969| 蜜臀av性久久久久蜜臀av麻豆| 欧美成人乱码一区二区三区| 国产自产v一区二区三区c| 国产校园另类小说区| 成人免费黄色在线| 亚洲九九爱视频| 3atv一区二区三区| 国产综合久久久久影院| 中文字幕高清不卡| 在线一区二区三区四区五区| 亚洲国产精品尤物yw在线观看| 欧美一区二区三区在| 国产一区二区在线视频| 中文字幕一区二区三区四区| 在线日韩一区二区| 捆绑紧缚一区二区三区视频| 国产欧美在线观看一区| 在线日韩一区二区| 免费一级片91| 国产精品久久777777| 欧美美女喷水视频| 国产一区二区三区久久久| 亚洲人妖av一区二区| 7777精品伊人久久久大香线蕉 | 亚洲成人免费看| 精品久久久久一区二区国产| 99re8在线精品视频免费播放| 日韩黄色一级片| 欧美国产一区二区| 91麻豆精品国产自产在线观看一区| 国产精品一区在线观看你懂的| 亚洲女人****多毛耸耸8| 欧美一二三区在线观看| av高清久久久| 久久国产精品无码网站| 亚洲乱码国产乱码精品精98午夜| 91精品国模一区二区三区| 成人性生交大片免费| 青青草原综合久久大伊人精品优势 | 国产精品一区二区三区乱码| 夜夜精品视频一区二区| 久久蜜桃av一区二区天堂| 欧美日韩国产高清一区二区| 成人免费视频网站在线观看| 婷婷国产在线综合| 中文字幕一区二区三区视频| 日韩美女视频在线| 欧美午夜精品电影| bt7086福利一区国产| 麻豆专区一区二区三区四区五区| 亚洲久草在线视频| 国产精品国产三级国产普通话蜜臀 | 久久综合网色—综合色88| 色婷婷久久一区二区三区麻豆| 精品一区二区免费|