第三个页面中取出是用这句username=session.getAttribute("username");吗? 可是报错了: org.apache.jasper.JasperException: Unable to compile class for JSPAn error occurred at line: 9 in the jsp file: /library/message1.jsp Generated servlet error: username cannot be resolved
我的onsubmit事件仅仅进行了最简单的判断:输入的用户名和密码不能为空
一般用户信息是存到session中调用的
有action,用了你的方法,结果报错: org.apache.jasper.JasperException: Unable to compile class for JSPAn error occurred at line: 9 in the jsp file: /library/message1.jsp Generated servlet error: username cannot be resolved 这是一种什么错误啊?
request.setAttribute("USERNAME", username);
或
session.setAttribute("USERNAME", username);
如果 有action,request.setAttribute("USERNAME", username);request.getparameter("")
可是报错了:
org.apache.jasper.JasperException: Unable to compile class for JSPAn error occurred at line: 9 in the jsp file: /library/message1.jsp
Generated servlet error:
username cannot be resolved
org.apache.jasper.JasperException: Unable to compile class for JSPAn error occurred at line: 9 in the jsp file: /library/message1.jsp
Generated servlet error:
username cannot be resolved
这是一种什么错误啊?
还是String str比较好~~~不然有些String方法不能用。
session.setAttribute(String name,Object value);
session.getAttribute(String name);
一次会话都能使用到当前session.