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

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

?? redirecttag.java

?? struts的源代碼
?? JAVA
字號:
/*
 * $Id: RedirectTag.java 54929 2004-10-16 16:38:42Z germuska $ 
 *
 * Copyright 2000-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.taglib.logic;

import java.io.IOException;
import java.net.MalformedURLException;
import java.util.Map;

import javax.servlet.http.HttpServletResponse;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.TagSupport;

import org.apache.struts.util.MessageResources;
import org.apache.struts.taglib.TagUtils;

/**
 * Generate a URL-encoded redirect to the specified URI.
 *
 * @version $Rev: 54929 $ $Date: 2004-10-16 17:38:42 +0100 (Sat, 16 Oct 2004) $
 */
public class RedirectTag extends TagSupport {

    // ------------------------------------------------------------- Properties

    /**
     * The anchor to be added to the end of the generated hyperlink.
     */
    protected String anchor = null;

    public String getAnchor() {
        return (this.anchor);
    }

    public void setAnchor(String anchor) {
        this.anchor = anchor;
    }

    /**
     * The logical forward name from which to retrieve the redirect URI.
     */
    protected String forward = null;

    public String getForward() {
        return (this.forward);
    }

    public void setForward(String forward) {
        this.forward = forward;
    }

    /**
     * The redirect URI.
     */
    protected String href = null;

    public String getHref() {
        return (this.href);
    }

    public void setHref(String href) {
        this.href = href;
    }

    /**
     * The message resources for this package.
     */
    protected static MessageResources messages =
        MessageResources.getMessageResources(
            "org.apache.struts.taglib.logic.LocalStrings");

    /**
     * The JSP bean name for query parameters.
     */
    protected String name = null;

    public String getName() {
        return (this.name);
    }

    public void setName(String name) {
        this.name = name;
    }

    /**
     * The module-relative page URL (beginning with a slash) to which
     * this redirect will be rendered.
     */
    protected String page = null;

    public String getPage() {
        return (this.page);
    }

    public void setPage(String page) {
        this.page = page;
    }

    /**
     * The module-relative action (beginning with a slash) which will be
     * called by this link
     */
    protected String action = null;

    public String getAction() {
        return (this.action);
    }

    public void setAction(String action) {
        this.action = action;
    }


	/**
	 * The module prefix (beginning with a slash) which will be
	 * used to find the action for this link.
	 */
	protected String module = null;

	public String getModule() {
		return (this.module);
	}

	public void setModule(String module) {
		this.module = module;
	}

    /**
     * The single-parameter request parameter name to generate.
     */
    protected String paramId = null;

    public String getParamId() {
        return (this.paramId);
    }

    public void setParamId(String paramId) {
        this.paramId = paramId;
    }

    /**
     * The single-parameter JSP bean name.
     */
    protected String paramName = null;

    public String getParamName() {
        return (this.paramName);
    }

    public void setParamName(String paramName) {
        this.paramName = paramName;
    }

    /**
     * The single-parameter JSP bean property.
     */
    protected String paramProperty = null;

    public String getParamProperty() {
        return (this.paramProperty);
    }

    public void setParamProperty(String paramProperty) {
        this.paramProperty = paramProperty;
    }

    /**
     * The single-parameter JSP bean scope.
     */
    protected String paramScope = null;

    public String getParamScope() {
        return (this.paramScope);
    }

    public void setParamScope(String paramScope) {
        this.paramScope = paramScope;
    }

    /**
     * The JSP bean property name for query parameters.
     */
    protected String property = null;

    public String getProperty() {
        return (this.property);
    }

    public void setProperty(String property) {
        this.property = property;
    }

    /**
     * The scope of the bean specified by the name property, if any.
     */
    protected String scope = null;

    public String getScope() {
        return (this.scope);
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    /**
     * Include our transaction control token?
     */
    protected boolean transaction = false;

    public boolean getTransaction() {
        return (this.transaction);
    }

    public void setTransaction(boolean transaction) {
        this.transaction = transaction;
    }

	/**
	 * Use character encoding from ServletResponse#getCharacterEncoding
	 * to get bytes of the url string for urlencoding?
	 */
	protected boolean useLocalEncoding = false;
    
	public boolean isUseLocalEncoding() {
	   return useLocalEncoding;
	}

	public void setUseLocalEncoding(boolean b) {
	   useLocalEncoding = b;
	}

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

    /**
     * Defer generation until the end of this tag is encountered.
     *
     * @exception JspException if a JSP exception has occurred
     */
    public int doStartTag() throws JspException {

        return (SKIP_BODY);

    }

    /**
     * Render the redirect and skip the remainder of this page.
     *
     * @exception JspException if a JSP exception has occurred
     */
    public int doEndTag() throws JspException {

        this.doRedirect(this.generateRedirectURL());

        return (SKIP_PAGE);

    }

    /**
     * Calculate the url to redirect to.
     * @throws JspException
     * @since Struts 1.2
     */
    protected String generateRedirectURL() throws JspException {
        Map params =
            TagUtils.getInstance().computeParameters(
                pageContext,
                paramId,
                paramName,
                paramProperty,
                paramScope,
                name,
                property,
                scope,
                transaction);

        String url = null;
        try {
            url =
                TagUtils.getInstance().computeURLWithCharEncoding(
                    pageContext,
                    forward,
                    href,
                    page,
                    action,
                    module,
                    params,
                    anchor,
                    true,
                    useLocalEncoding);

        } catch (MalformedURLException e) {
            TagUtils.getInstance().saveException(pageContext, e);
            throw new JspException(
                messages.getMessage("redirect.url", e.toString()));
        }

        return url;
    }

    /**
     * Redirect to the given url converting exceptions to JspException.
     * @param url The path to redirect to.
     * @throws JspException
     * @since Struts 1.2
     */
    protected void doRedirect(String url) throws JspException {
        HttpServletResponse response =
            (HttpServletResponse) pageContext.getResponse();

        try {
            response.sendRedirect(url);

        } catch (IOException e) {
            TagUtils.getInstance().saveException(pageContext, e);
            throw new JspException(e.getMessage());
        }
    }

    /**
     * Release any acquired resources.
     */
    public void release() {

        super.release();
        anchor = null;
        forward = null;
        href = null;
        name = null;
        page = null;
        action = null;
        paramId = null;
        paramName = null;
        paramProperty = null;
        paramScope = null;
        property = null;
        scope = null;

    }

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产v综合v亚洲欧| 欧美视频中文一区二区三区在线观看 | 国产寡妇亲子伦一区二区| 色综合久久久久久久| 国产日韩欧美不卡在线| 玖玖九九国产精品| 欧美一区二区三区四区五区| 18欧美亚洲精品| 一本大道久久a久久精二百| 国产视频一区二区在线| 国产成人综合在线观看| 久久精品人人做| 不卡视频在线看| 亚洲欧美日本韩国| 在线观看日韩精品| 亚洲国产精品精华液网站| 欧美性极品少妇| 日韩精品1区2区3区| 欧美一级在线视频| 美美哒免费高清在线观看视频一区二区 | 国产欧美一区二区三区在线看蜜臀 | 日韩一区二区三| 亚洲成人你懂的| 在线观看亚洲一区| 美女视频网站久久| 国产免费成人在线视频| 99久久精品免费精品国产| 亚洲成av人综合在线观看| 日韩一二三区视频| 99re这里都是精品| 亚洲bt欧美bt精品| 国产欧美日韩精品a在线观看| 91丝袜高跟美女视频| 美国三级日本三级久久99| 欧美激情一区在线观看| 欧美精品精品一区| av在线一区二区| 狠狠久久亚洲欧美| 亚洲综合偷拍欧美一区色| 久久亚洲综合色| 在线不卡a资源高清| 色婷婷亚洲综合| 成人精品视频网站| 国产精品一二三区在线| 男女男精品视频| 午夜精品一区二区三区三上悠亚| 久久精品亚洲国产奇米99| 777久久久精品| 欧洲一区在线观看| 亚洲国产成人av网| 麻豆免费看一区二区三区| 在线免费不卡视频| 国产精品一级在线| 国模冰冰炮一区二区| 亚洲18色成人| 日韩**一区毛片| 亚洲国产成人91porn| 一区二区成人在线| 亚洲激情男女视频| 夜夜亚洲天天久久| 午夜精品久久久久久不卡8050| 亚洲欧美激情插| 亚洲视频一区二区免费在线观看| 国产精品理伦片| 亚洲裸体xxx| 午夜精品在线看| 国产精品资源在线| 暴力调教一区二区三区| 99riav久久精品riav| 欧美日韩国产首页| 欧美成人福利视频| 国产女主播一区| 日韩一区欧美一区| 亚洲一区二区三区在线| 秋霞午夜鲁丝一区二区老狼| 国内精品写真在线观看| eeuss鲁片一区二区三区在线观看| 成人av在线一区二区三区| 91官网在线观看| 精品成人一区二区三区| 亚洲免费高清视频在线| 麻豆成人91精品二区三区| youjizz国产精品| 日韩视频不卡中文| 亚洲欧美日韩国产另类专区| 蜜桃精品视频在线| 欧美亚洲国产一区二区三区va | 黄色日韩三级电影| 在线观看日韩国产| 国产精品伦理在线| 久久99精品国产麻豆婷婷洗澡| 色哟哟精品一区| 久久久夜色精品亚洲| 日韩av中文字幕一区二区三区| 不卡欧美aaaaa| 国产精品久久一级| 国产很黄免费观看久久| 日韩一区二区三区四区| 亚洲国产日韩综合久久精品| 99久久婷婷国产| 国产精品久久久久一区二区三区| 国产精品一二三在| 久久久久久久久岛国免费| 韩国中文字幕2020精品| 欧美成人高清电影在线| 国产最新精品精品你懂的| 欧美mv日韩mv| 国产精品99久久久久久有的能看| 555www色欧美视频| 精品在线播放午夜| 久久久久高清精品| 成人午夜av电影| 中文字幕亚洲电影| 欧美三级视频在线| 青草av.久久免费一区| 337p日本欧洲亚洲大胆色噜噜| 精品一区二区三区免费播放| 国产日韩欧美精品综合| 99精品视频在线播放观看| 一区二区三区精密机械公司| 在线观看91视频| 国产一区二区三区日韩| 中文字幕亚洲区| 欧美一级日韩一级| 国产精品18久久久久久久久| 亚洲精品亚洲人成人网| 日韩视频免费观看高清在线视频| 国产在线观看一区二区| 亚洲乱码一区二区三区在线观看| 91精品国产综合久久精品| 国产成人啪午夜精品网站男同| 曰韩精品一区二区| 欧美v日韩v国产v| 欧美特级限制片免费在线观看| 韩国中文字幕2020精品| 日韩电影在线看| 一区二区三区在线观看动漫| 欧美一区二区人人喊爽| 91九色最新地址| 成人h精品动漫一区二区三区| 蜜桃视频在线观看一区| 国产精品美女视频| 欧美久久高跟鞋激| 色综合中文综合网| 亚洲黄色在线视频| 国产精品伦理一区二区| 久久亚洲免费视频| 欧美tickling挠脚心丨vk| 在线不卡免费av| 日韩欧美国产麻豆| 精品日韩在线观看| 欧美精品一区二区三区蜜桃| 欧美精品在线视频| 日韩三级中文字幕| 欧美精品一区二| 久久综合久久99| 国产午夜精品久久| 国产精品美女一区二区| 亚洲男帅同性gay1069| 一区二区欧美视频| 日韩国产欧美在线观看| 蜜臀久久99精品久久久久久9| 极品少妇xxxx精品少妇| 国产99久久久国产精品潘金| 不卡一区二区在线| 337p亚洲精品色噜噜| 欧美xxxx在线观看| 国产精品久久久久久久久免费丝袜 | 日韩av电影一区| 精品无人区卡一卡二卡三乱码免费卡| 国产一区二区三区在线观看免费视频| 国产jizzjizz一区二区| 日本高清视频一区二区| 日韩一级二级三级精品视频| 国产视频911| 亚洲国产精品人人做人人爽| 国精品**一区二区三区在线蜜桃| 白白色亚洲国产精品| 91精品久久久久久久久99蜜臂| 久久午夜免费电影| 天天色综合天天| 99久久伊人精品| 2017欧美狠狠色| 首页综合国产亚洲丝袜| 91麻豆国产福利精品| 久久久影院官网| 日本伊人午夜精品| 日本道精品一区二区三区| 日本一区二区三级电影在线观看| 偷偷要91色婷婷| 欧美图区在线视频| 一区二区三区丝袜| 91尤物视频在线观看| 国产农村妇女精品| 高清不卡一区二区在线| 国产欧美精品一区二区三区四区 | 国产在线精品一区在线观看麻豆| 欧美亚洲丝袜传媒另类| 亚洲综合成人在线| 欧美日韩美女一区二区|