单项选择题
下面的哪个选项不能实现页面的跳转?()
A.<jsp:redirecturl="someurl"/>
B.<jsp:forwardpage="someurl"/>
C.<%response.sendRedirect("someurl");%>
点击查看答案&解析
相关考题
-
单项选择题
Page指令中的哪一个属性用来定义Jsp页面的MIME类型和Jsp字符的编码?()
A.contentType
B.import
C.language
D.session -
单项选择题
以下哪条语句能够将session中的属性key删除?()
A.session.unbind("key");
B.session.remove("key");
C.session.removeAttribute("key");
D.session.unbindAttribute("key"); -
单项选择题
阅读下面代码片段(其中login.jsp页面在WebContext目录下):Servlet1:request.setAttribute("company","XXX有限公司");RequestDispatcherdispatcher=request.getRequestDispatcher("login.jsp");dispatcher.forward(request,response);login.jsp:hello${company}当使用浏览器访问Servlet1时会什么结果?()
A.页面跳转失败
B.页面结果显示为:hello${company}
C.页面跳转错误,程序出现异常
D.正常跳转,页面显示为:helloXXX有限公司
