![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
web
Ninja_Z
非淡泊无以名志,非宁静无以致远。
展开
-
监听器
监听器web的事件编程事件源: ServletContext对象,ServletRequest对象,HttpSession对象(域对象)事件: ServletContextEvent,ServletRequestEvent,xxx(创建或销毁对象,对象的属性修改)事件监听器(接口): ServletContextListener,ServletRequestListener …web监听器:原创 2017-06-28 09:49:02 · 346 阅读 · 0 评论 -
过滤器
过滤器场景1: request.getParameter("参数名"); 遇到参数内容中文乱码问题,解决方法: - post提交: request.setCharacterEncoding("utf-8"); - get提交: 手动解码 name = new String(name.getBytes("iso-8859-1"),"utf-8");问题: 每个请求都需要servlet进行上面代码的原创 2017-06-27 16:11:10 · 386 阅读 · 0 评论