网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

在JSP中需要将1.jsp的请求数据通过2.jsp转发给3.jsp,应该在2.jsp中采用()方式实现。

  • A、〈%request.sendRedirect(“3.jsp”)%〉
  • B、〈%response.sendRedirect(“3.jsp”)%〉
  • C、〈%request.getRequestDispatcher(“3.jsp”).forward(request,response)%〉
  • D、〈%response.sentRedirect(“32.jsp”).forward(request,response)%〉

参考答案

更多 “在JSP中需要将1.jsp的请求数据通过2.jsp转发给3.jsp,应该在2.jsp中采用()方式实现。A、〈%request.sendRedirect(“3.jsp”)%〉B、〈%response.sendRedirect(“3.jsp”)%〉C、〈%request.getRequestDispatcher(“3.jsp”).forward(request,response)%〉D、〈%response.sentRedirect(“32.jsp”).forward(request,response)%〉” 相关考题
考题 在J2EE中,在aa.jsp中有行代码:%request.setAttribute(Co.,jb-aptech%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.jspB.在aa.jsp中使用jsp:forwardfile=bb.jsp/把页面重定向到bb.jspC.在aa.jsp中使用%response.sendRedirect(bb.jsp);%把页面重定向到bb.jspD.在aa.jsp中使用%@includefile=bb.jsp%包含页面bb.jspE.在aa.jsp中使用%config.getServletContext().getRequestDispatcher(/bb.jsp).forward(request,response);%把页面重定向到bb.jsp

考题 下列选项中能在JSP页面中实现转向的是() A.Response.forward(“/index.jsp”)B.Response.sendRedirect(“/index.jsp”)C.request.forward(“/index.jsp”)D.request.sendRedirect(“/index.jsp”)

考题 在JSP中,重定向到另一个页面,以下_______语句是正确的。 A、request.sendRedirect("http://www.jb-aptech.com.cn")B、request.sendRedirect()C、response.sendRedirect("http://www.jb-aptech.com.cn")D、response.sendRedirect()

考题 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);

考题 在servlet中实现转发功能是通过()方法实现的。 A.response.getRequestDispatcher()B.response.sendRedirect()C.request..getRequestDispatcher()D.request.sendRedirect()

考题 在servlet中实现重定向功能是通过()方法实现的。 A.response.getRequestDispatcher()B.response.sendRedirect()C.request..getRequestDispatcher()D.request.sendRedirect()

考题 ISO的传输层中定义的面向连接的数据传送服务原语包括()。A、request(请求)、response(响应)B、request(请求)、indication(指示)C、indication(指示)、confirm(证实)D、response(响应)、confirm(证实)

考题 能够保留请求作用域中数据的转向方式是()。A、response.forward()B、response.sendRedirect()C、session.getRequestDispatcher().forward(request,response)D、request.getRequestDispatcher().forward(request,response)

考题 在Java中,下列关于重定向和转发的描述正确的是()。  A、 转发对应的代码为:rquest.getRequestDispatcher(url).forward(request,response);B、 重定向对应的代码为:request.sendRedirect(url);C、 重定向在用户的浏览器端被处理。D、 转发后,浏览器的地址栏内容会发生改变。

考题 在JSP页面编程中,页面跳转可以采用如下哪种方法实现?()A、response.forwardB、request.includeC、response.sendRedirectD、request.setAttribute

考题 重定向可以使用()方法。A、forwardpage= “login.jsp”/B、jsp:forwardpage= “login.jsp”/C、request.sendRedirect(“login.jsp”);D、response.sendRedirect(“login.jsp”);

考题 在J2EE中,在aa.jsp中有行代码:  %%  request.setAttribute("Co.","jb-aptech");  %  在bb.jsp中有行代码: %  out.println((String)request.getAttribute("Co."));  %    %   为了使得在bb.jsp中的如上代码可以显示“jb-aptech”,可以使用()方法。A、在aa.jsp中使用form method=post action="bb.jsp"把请求提交到bb.jsp B、在aa.jsp中使用jsp:forward file="bb.jsp" /把页面重定向到bb.jsp  C、在aa.jsp中使用%  response.sendRedirect("bb.jsp");  %把页面重定向到bb.jsp D、在aa.jsp中使用%@ include file="bb.jsp" %包含页面bb.jsp  E、在aa.jsp中使用% config.getServletContext().getRequestDispatcher("/bb.jsp").forward(request,response); %把页面重定向到bb.jsp

考题 下列选项中能在JSP页面中实现转向的是() A、 Response.forward(“/index.jsp”)B、 Response.sendRedirect(“/index.jsp”)C、 request.forward(“/index.jsp”)D、 request. sendRedirect (“/index.jsp”)

考题 Your IT department is building a lightweight Front Controller servlet that invokes an application logic objectwith the interface: public interface ApplicationController {public String invoke(HttpServletRequest request)} The return value of this method indicates a symbolic name of the next view. From this name, the FrontController servlet looks up the JSP URL in a configuration table. This URL might be an absolute path or apath relative to the current request. Next, the Front Controller servlet must send the request to this JSP togenerate the view. Assume that the servlet variable request is assigned the current HttpServletRequestobject and the variable context is assigned the webapp’s ServletContext. Which code snippet of the FrontController servlet accomplishes this goal?()A、Dispatcher view=context.getDispatcher(viewURL);view.forward Request(request, response);B、Dispatcher view=request.getDispatcher(viewURL);view.forward Request(request, response);C、RequestDispatcher view. =context.getRequestDispatcher(viewURL);view.forward(request,response);D、RequestDispatcher view=request.getRequestDispatcher(viewURL);view.forward(request, response);

考题 过滤器使用()才能继续传递到下一个过滤器。A、request.getRequestDispatcher().forward(request,response)B、doFilter()C、doPut()D、doChain()

考题 在J2EE中,重定向到另一个页面,以下()语句是正确的。A、request.sendRedirect(B、response.sendRedirect(C、request.sendRedirect();D、response.sendRedirect();

考题 阅读下面代码片段: RequestDispatcher dispatcher=request.getRequestDispatcher("a.jsp"); dispatcher.forward(request,response); 关于该段代码的作用,下列叙述哪项是正确的?()A、页面重定向到a.jsp页面B、将请求转发到a.jsp页面C、从a.jsp定向到当前页面D、从a.jsp转发到当前页面

考题 A client is searching for an access point (AP). What is the correct process order that the client and  access point go through to create a connection?()A、 probe request/response, authentication request/response, association request/responseB、 association request/response, authentication request/response, probe request/responseC、 probe request/response, association request/response, authentication request/responseD、 association request/response, probe request/response, authentication request/response

考题 Given a Filter class definition with this method: 21.public void doFilter(ServletRequest request, 22.ServletResponse response, 23.FilterChain chain) 24.throws ServletException, IOException { 25.// insert code here26. } Which should you insert at line 25 to properly invoke the next filter in the chain,or the target servlet if thereare no more filters?()A、chain.forward(request, response);B、chain.doFilter(request, response);C、request.forward(request, response);D、request.doFilter(request, response);

考题 多选题在J2EE中,在aa.jsp中有行代码:   在bb.jsp中有行代码:        为了使得在bb.jsp中的如上代码可以显示“jb-aptech”,可以使用()方法。A在aa.jsp中使用form method=post action=bb.jsp把请求提交到bb.jspB在aa.jsp中使用jsp:forward file=bb.jsp /把页面重定向到bb.jspC在aa.jsp中使用%  response.sendRedirect(bb.jsp);  %把页面重定向到bb.jspD在aa.jsp中使用%@ include file=bb.jsp %包含页面bb.jspE在aa.jsp中使用% config.getServletContext().getRequestDispatcher(/bb.jsp).forward(request,response); %把页面重定向到bb.jsp

考题 单选题能够保留请求作用域中数据的转向方式是()。A response.forward()B response.sendRedirect()C session.getRequestDispatcher().forward(request,response)D request.getRequestDispatcher().forward(request,response)

考题 单选题下列选项中能在JSP页面中实现转向的是()A  Response.forward(“/index.jsp”)B  Response.sendRedirect(“/index.jsp”)C  request.forward(“/index.jsp”)D  request. sendRedirect (“/index.jsp”)

考题 单选题A client is searching for an access point (AP). What is the correct process order that the client and  access point go through to create a connection?()A  probe request/response, authentication request/response, association request/responseB  association request/response, authentication request/response, probe request/responseC  probe request/response, association request/response, authentication request/responseD  association request/response, probe request/response, authentication request/response

考题 单选题Your IT department is building a lightweight Front Controller servlet that invokes an application logic objectwith the interface: public interface ApplicationController {public String invoke(HttpServletRequest request)} The return value of this method indicates a symbolic name of the next view. From this name, the FrontController servlet looks up the JSP URL in a configuration table. This URL might be an absolute path or apath relative to the current request. Next, the Front Controller servlet must send the request to this JSP togenerate the view. Assume that the servlet variable request is assigned the current HttpServletRequestobject and the variable context is assigned the webapp’s ServletContext. Which code snippet of the FrontController servlet accomplishes this goal?()A Dispatcher view=context.getDispatcher(viewURL);view.forward Request(request, response);B Dispatcher view=request.getDispatcher(viewURL);view.forward Request(request, response);C RequestDispatcher view. =context.getRequestDispatcher(viewURL);view.forward(request,response);D RequestDispatcher view=request.getRequestDispatcher(viewURL);view.forward(request, response);

考题 多选题在Java中,下列关于重定向和转发的描述正确的是()。A转发对应的代码为:rquest.getRequestDispatcher(url).forward(request,response);B重定向对应的代码为:request.sendRedirect(url);C重定向在用户的浏览器端被处理。D转发后,浏览器的地址栏内容会发生改变。

考题 单选题Given a Filter class definition with this method: 21.public void doFilter(ServletRequest request, 22.ServletResponse response, 23.FilterChain chain) 24.throws ServletException, IOException { 25.// insert code here 26.} Which should you insert at line 25 to properly invoke the next filter in the chain, or the target servlet if thereare no more filters?()A chain.forward(request, response);B chain.doFilter(request, response);C request.forward(request, response);D request.doFilter(request, response);

考题 单选题在JSP中需要将1.jsp的请求数据通过2.jsp转发给3.jsp,应该在2.jsp中采用()方式实现。A 〈%request.sendRedirect(“3.jsp”)%〉B 〈%response.sendRedirect(“3.jsp”)%〉C 〈%request.getRequestDispatcher(“3.jsp”).forward(request,response)%〉D 〈%response.sentRedirect(“32.jsp”).forward(request,response)%〉