全文预览

Web课程设计-micro-blog信息系统

上传者:upcfxx |  格式:doc  |  页数:43 |  大小:812KB

文档介绍
lic String handleString(String s)Р { try{ byte bb[]=s.getBytes("iso-8859-1");Р s=new String(bb);Р }Р catch(Exception ee){} Р return s; Р }Р public void doPost(HttpServletRequest request,HttpServletResponse response) Р throws ServletException,IOExceptionР { Connection con; Р PreparedStatement sql; Р Login loginBean=null;Р String backNews="";Р HttpSession session=request.getSession(true);Р try{ loginBean=(Login)session.getAttribute("login");Р if(loginBean==null)Р { loginBean=new Login(); Р session.setAttribute("login",loginBean);Р }Р }Р catch(Exception ee)Р { loginBean=new Login(); Р session.setAttribute("login",loginBean);Р }Р String logname=request.getParameter("logname").trim(),Р password=request.getParameter("password").trim();Р boolean ok=loginBean.ess();Р logname=handleString(logname);

收藏

分享

举报
下载此文档