?? pageredirectexception.java
字號:
// Copyright 2005-2007 onetsoft.com
//
// 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 com.onetsoft.fastjsp;
import java.util.Map;
import java.util.Collections;
/**
* 頁面跳轉類
* 系統將forward到指定頁面,同時此exception本身會置入request屬性{@link com.onetsoft.fastjsp.util.Constants#EXCEPTION_ATTRIBUTE}
* 注:這里跳轉的頁面只是簡單的表現頁面,不會涉及頁面類{@link AbstractPage}。若要與頁面類相關,請用{@link RedirectException}
* @author <a href="mailto:hgw@onetsoft.com">hgw</a>
* @see RedirectException
* @since 2.0
*/
public class PageRedirectException extends ApplicationRuntimeException{
private String pageName=null;
private Map map=null;
public PageRedirectException(String pageName) {
this(pageName, Collections.EMPTY_MAP);
}
/**
* 參數構造跳轉頁
* @param pageName
* @param map 一般用以攜帶錯誤參數
*/
public PageRedirectException(String pageName, Map map) {
this.pageName = pageName;
this.map = map;
}
public String getPage() {
return pageName;
}
public Map getMap() {
return map;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -