A Better Day
playingfly
全部博文(18)
2009年(3)
2008年(15)
li53133
wtgtop
choisiwo
sometime
kinghann
yxw03082
iBoost
thanklif
nxnxfly
分类: Java
2009-01-24 14:56:25
@Override public String list() throws Exception { HttpServletRequest request = ServletActionContext.getRequest(); String loginName = request.getParameter("j_username"); String password = request.getParameter("j_password"); HttpSession session = request.getSession(); session.setAttribute("username", loginName); session.setAttribute("password", password); //你要转向的页面的地址. String url = new String( ("../j_spring_security_check?j_username=" +java.net.URLEncoder.encode(loginName) +"&j_password="+password).getBytes("UTF-8"),"ISO8859_1");
//你要转向的页面的地址. HttpServletResponse response = ServletActionContext.getResponse(); response.sendRedirect(url); //重定向后,别忘了返回null值,而不能再返回return
//mapping.findForward("****"); return null; //return SUCCESS; }
上一篇:Myeclipse6反编译工具安装(jad) z
下一篇:有效阅读基本技能:分辨事实与看法
登录 注册