freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

jsp過(guò)濾器ppt課件-閱讀頁(yè)

2025-05-20 13:36本頁(yè)面
  

【正文】 uage=java“ pageEncoding=GBK% html head title歡迎頁(yè)面 /title /head body center h2 歡迎 /h2 /center /body /html % page language=java pageEncoding=GBK% html head title拒絕訪問(wèn) /title /head body center h2 對(duì)不起 , 您的 IP地址禁止訪問(wèn)該網(wǎng)站 /h2 /center /body /html 、 servlet過(guò)濾器的深入使用 ? servlet的串聯(lián) ? servlet 2 Servlet監(jiān)聽(tīng)器 ? Servlet監(jiān)聽(tīng)器工作原理 ? Servlet監(jiān)聽(tīng)器類型 ? 應(yīng)用實(shí)例 Servlet監(jiān)聽(tīng)器 — 原理 Servlet監(jiān)聽(tīng)器是 Web應(yīng)用程序事件模型的一部分,當(dāng) Web應(yīng)用中的某些狀態(tài)發(fā)生改變時(shí), Servlet容器就會(huì)產(chǎn)生相應(yīng)的事件,比如創(chuàng)建 ServletContext對(duì)象時(shí)觸發(fā) ServletContextEvent事件,創(chuàng)建HttpSession對(duì)象時(shí)觸發(fā) HttpSessionEvent事件,Servlet監(jiān)聽(tīng)器可接收這些事件,并可以在事件發(fā)生前、發(fā)生后可以做一些必要的處理。 HttpSession事件監(jiān)聽(tīng)器:用于監(jiān)聽(tīng)用戶會(huì)話對(duì)象 。 Servlet監(jiān)聽(tīng)器類型 1. ServletContext事件監(jiān)聽(tīng)器 對(duì) ServletContext對(duì)象進(jìn)行監(jiān)聽(tīng)的接口有ServletContextAttributeListener和 ServletContextListener,其中ServletContextAttributeListener用于監(jiān)聽(tīng) ServletContext對(duì)象中屬性的改變,包括增加屬性、刪除屬性和修改屬性。 接口名稱 方法名稱 描述 ServletContextAttributeListener attributeAdded( ServletContextAttributeEvent scae) 增加屬性時(shí)激發(fā)此方法 attributeRemoved( ServletContextAttributeEvent scae) 刪除屬性時(shí)候激發(fā)此方法 attributeReplaced( ServletContextAttributeEvent scae) 修改屬性時(shí)激發(fā)此方法 ServletContextListener contextDestroyed( ServletContextEvent sce) 銷毀 ServletContext時(shí)激發(fā)此方法 contextInitialized( ServletContextEvent sce) 創(chuàng)建 ServletContext時(shí)激發(fā)此方法 ServletContext事件監(jiān)聽(tīng)器中的接口和方法如表所示: 2. HttpSession事件監(jiān)聽(tīng)器 對(duì)會(huì)話對(duì)象進(jìn)行監(jiān)聽(tīng)的接口有 HttpSessionAttributeListener、HttpSessionListener、 HttpSessionActivationListener和HttpSessionBindingListener。 HttpSessionListener用于監(jiān)聽(tīng) HttpSession對(duì)象的改變,例如HttpSession對(duì)象的創(chuàng)建與銷毀。HttpSessionBindingListener用于監(jiān)聽(tīng) HttpSession對(duì)象的綁定狀態(tài),例如添加對(duì)象和移除對(duì)象。 ServletRequestAttributeListener用于監(jiān)聽(tīng) ServletRequest對(duì)象中屬性的變化,例如屬性的增加、刪除和修改。 ? import 。//定義一個(gè)代表在線人數(shù)的變量 ? public OnlineListener(){onlineCount=0。 ? ().getServletContext().setAttribute(online,new Integer(onlineCount))。 ? ().getServletContext().setAttribute(online,new Integer(onlineCount)
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1