问答详情
源自:6-4 案例:Cookie在登录中的应用

这个错误怎么解决

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

org.apache.jasper.JasperException: An exception occurred processing [/object_out/cookie.jsp] at line [13]

10: 	<%
11: 	request.setCharacterEncoding("utf-8");
12: 		String[] isUseCookie = request.getParameterValues("isChecked");
13: 		if ((isUseCookie!=null) || (isUseCookie.length > 0)) {
14: 			String username = request.getParameter("username");
html标签
<td><input type="checkbox" name="isChecked" checked="checked" value="">记住密码</td>



15: 			String password = request.getParameter("password");
16: 			Cookie usernameCookie = new Cookie("username", username);//使用cookie


提问者:慕移动4778644 2018-04-04 20:06
微课

个回答

  • 慕移动5532301
    2018-04-05 12:56:11
    已采纳

    ||逻辑改成&&