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);