在JSP中需要将1.jsp的请求数据通过2.jsp转发给3.jsp,应该在2.jsp中采用()方式实现。
第1题:
A、request.sendRedirect("http://www.jb-aptech.com.cn")
B、request.sendRedirect()
C、response.sendRedirect("http://www.jb-aptech.com.cn")
D、response.sendRedirect()
第2题:
A.response.getRequestDispatcher()
B.response.sendRedirect()
C.request..getRequestDispatcher()
D.request.sendRedirect()
第3题:
在J2EE中,在aa.jsp中有行代码:<%request.setAttribute("Co.","jb-aptech");%>在bb.jsp中有行代码:<%out.println((String)request.getAttribute("Co."));%>为了使得在bb.jsp中的如上代码可以显示jb-aptech”,可以使用()方法。
A.在aa.jsp中使用<formmethod=postaction="bb.jsp">把请求提交到bb.jsp
B.在aa.jsp中使用<jsp:forwardfile="bb.jsp"/>把页面重定向到bb.jsp
C.在aa.jsp中使用<%response.sendRedirect("bb.jsp");%>把页面重定向到bb.jsp
D.在aa.jsp中使用<%@includefile="bb.jsp"%>包含页面bb.jsp
E.在aa.jsp中使用<%config.getServletContext().getRequestDispatcher("/bb.jsp").forward(request,response);%>把页面重定向到bb.jsp
第4题:
在Java中,下列关于重定向和转发的描述正确的是()。
第5题:
ISO的传输层中定义的面向连接的数据传送服务原语包括()。
第6题:
GivenaFilterclassdefinitionwiththismethod:21.publicvoiddoFilter(ServletRequestrequest,22.ServletResponseresponse,23.FilterChainchain)24.throwsServletException,IOException{25.//insertcodehere26.}Whichshouldyouinsertatline25toproperlyinvokethenextfilterinthechain,orthetargetservletiftherearenomorefilters?()
A.chain.forward(request,response);
B.chain.doFilter(request,response);
C.request.forward(request,response);
D.request.doFilter(request,response);
第7题:
A.response.getRequestDispatcher()
B.response.sendRedirect()
C.request..getRequestDispatcher()
D.request.sendRedirect()
第8题:
A.Response.forward(“/index.jsp”)
B.Response.sendRedirect(“/index.jsp”)
C.request.forward(“/index.jsp”)
D.request.sendRedirect(“/index.jsp”)
第9题:
能够保留请求作用域中数据的转向方式是()。
第10题:
在JSP页面编程中,页面跳转可以采用如下哪种方法实现?()