JSF獲取頁(yè)面穿過(guò)來(lái)的參數(shù)

          CommonRequest.getRequest().getParameter("deptID")

           1
           2import javax.faces.context.ExternalContext;
           3import javax.faces.context.FacesContext;
           4import javax.servlet.http.HttpServletRequest;
           5
           6public class CommonRequest {
           7    public CommonRequest() {
           8    }

           9
          10    public static HttpServletRequest getRequest() {
          11        FacesContext facesContext = FacesContext.getCurrentInstance();
          12        ExternalContext externalContext = facesContext.getExternalContext();
          13        return (HttpServletRequest) externalContext.getRequest();
          14
          15    }

          16}


          posted on 2008-08-28 14:41 魯勝迪 閱讀(416) 評(píng)論(0)  編輯  收藏 所屬分類(lèi): 一點(diǎn)點(diǎn)

          <2008年8月>
          272829303112
          3456789
          10111213141516
          17181920212223
          24252627282930
          31123456

          導(dǎo)航

          統(tǒng)計(jì)

          常用鏈接

          留言簿(4)

          隨筆分類(lèi)

          隨筆檔案

          文章分類(lèi)

          新聞分類(lèi)

          搜索

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

          主站蜘蛛池模板: 兰州市| 宁武县| 云安县| 依安县| 横山县| 金堂县| 黄浦区| 邓州市| 余庆县| 武川县| 邳州市| 普宁市| 噶尔县| 洛南县| 晋州市| 河津市| 广灵县| 柳林县| 顺义区| 黔西| 宝鸡市| 十堰市| 汝城县| 寿光市| 四平市| 阜康市| 澄迈县| 上犹县| 礼泉县| 漠河县| 会宁县| 普定县| 蛟河市| 黄冈市| 塘沽区| 抚松县| 平邑县| 阆中市| 沙雅县| 兴化市| 辽宁省|