posts - 84, comments - 54, trackbacks - 0, articles - 0
             :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理
          在JSP開發過程中,我比較喜歡使用自定義標簽,但是在開發JSR168Portlet時,有時候需要在自定義標簽中使用PortletRequest, PortletRespose,如何取得這兩個東西呢?
          //PortletRequest簡單
          PortletRequest portletReqest = (PortletRequest) pageContext.getRequest();
          //PortletResponse不能這樣干,會出ClassCaseException
          PortletApiUtils portletUtils = PortletApiUtils.getUtilsInstance();
          PortletResponse portletResponse = (PortletResponse) portletUtils.getPortletResponse((HttpServletRequest) pageContext.getRequest());
          主站蜘蛛池模板: 湛江市| 德江县| 阳江市| 尚义县| 潼关县| 肇东市| 高阳县| 武城县| 元氏县| 新昌县| 金溪县| 梅州市| 井冈山市| 吴旗县| 瑞丽市| 三穗县| 蕉岭县| 安丘市| 和顺县| 津南区| 普格县| 济源市| 故城县| 荔浦县| 建湖县| 神木县| 沂南县| 墨玉县| 菏泽市| 湟中县| 太仓市| 江口县| 巩留县| 芜湖县| 吴堡县| 瓮安县| 惠水县| 和田县| 渭源县| 房山区| 孝义市|