当利用request的方法获取Form中元素时,默认情况下字符编码是哪个
A. ISO-8859-1
B. GB2312
C. GB3000
D. ISO-8259-1
查看答案
request.setAttribute("user","svse");session.setAttribute("user","bob");使用{user}则显示
A. null
B. svse
C. bob
D. 啥也没有
<%Stringname=request.getAttribute("uname");%>________________________横线处使用什么代码可以将name的值显示在页面
A. response.print(name);
B. <%request.getOut().print(name)%>
C. <%=name%>
D.
name
利用response对象的sendRedirect方法只能实现本网站内的页面跳转,但不能传递参数。
A. 对
B. 错
在下列选项中,正确创建并实现写入cookie的语句分别是( )。Cookie cookie = new Cookie( String key, Object value ); //1Cookie cookie = new Cookie();//2response.add(cookie);//3response.addCookie(cookie);//4
A. 1,3
B. 1,4
C. 2,3
D. 2,4