为了账号安全,请及时绑定邮箱和手机立即绑定

response.addCookie(usernameCookie);

http://img1.sycdn.imooc.com//5e9d12c30001dd6c07280268.jpg



严重: Servlet.service() for servlet [jsp] in context with path [/CookieDemo1] threw exception [An exception occurred processing JSP page /dologin.jsp at line 41

38:             usernameCookie.setMaxAge(864000);
39:             passwordCookie.setMaxAge(864000);
40:             
41:             response.addCookie(usernameCookie);
42:             response.addCookie(passwordCookie);
43:         }  else
44:         {


Stacktrace:] with root cause

正在回答

1 回答

去login看看表单提交页面有没有写错

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

response.addCookie(usernameCookie);

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号