能够保留请求作用域中数据的转向方式是()。A、response.forward()B、response.sendRedirect()C、session.getRequestDispatcher().forward(request,response)D、request.getRequestDispatcher().forward(request,response)
能够保留请求作用域中数据的转向方式是()。
- 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”)
在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);
ISO的传输层中定义的面向连接的数据传送服务原语包括()。A、request(请求)、response(响应)B、request(请求)、indication(指示)C、indication(指示)、confirm(证实)D、response(响应)、confirm(证实)
On the wireless LAN, A client is searching for an access point (AP). What is the correct processorder that this client and access point goes through in order to create a connection?()A、association request/response, probe request/response, authentication request/responseB、association request/response, authentication request/response, probe request/responseC、probe request/response, authentication request/response, association request/responseD、probe request/response, association request/response, authentication request/responseE、None of the other alternatives apply
下列选项中能在JSP页面中实现转向的是() A、 Response.forward(“/index.jsp”)B、 Response.sendRedirect(“/index.jsp”)C、 request.forward(“/index.jsp”)D、 request. sendRedirect (“/index.jsp”)
Servlet A forwarded a request to servlet B using the forward method of RequestDispatcher. What attributein B’s request object contains the URI of the original request received by servlet A?()A、REQUEST_URIB、javax.servlet.forward.request_uriC、javax.servlet.forward.REQUEST_URID、javax.servlet.request_dispatcher.request_uriE、javax.servlet.request_dispatcher.REQUEST_URI
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);
写入和读取cookie的方法是()A、request.addCookies()和response.getCookies()B、response.addcookie()和request.getCookies()C、request.addCookies()和request.getCookies()D、response.addcookie()和response.getCookies()
在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)%〉
过滤器使用()才能继续传递到下一个过滤器。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转发到当前页面
On the Company wireless LAN, A client is searching for an access point (AP). What is the correct process order that this Company client and access point goes through in order to create a connection?()A、 association request/response, probe request/response, authentication request/responseB、 association request/response, authentication request/response, probe request/responseC、 probe request/response, authentication request/response, association request/responseD、 probe request/response, association request/response, authentication request/responseE、 None of the other alternatives apply
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);
Which four occur during the processing of a request using Oracle Shared Server?()A、The dispatcher returns the response to the user.B、The dispatcher places the request into the request queue.C、The shared server places the response in the response queue.D、The response is handed off to the next available dispatcher.E、A shared server picks up the request from the request queue and processes the request.
单选题能够保留请求作用域中数据的转向方式是()。Aresponse.forward()Bresponse.sendRedirect()Csession.getRequestDispatcher().forward(request,response)Drequest.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”)
单选题Servlet A forwarded a request to servlet B using the forward method of RequestDispatcher. What attributein B’s request object contains the URI of the original request received by servlet A?()AREQUEST_URIBjavax.servlet.forward.request_uriCjavax.servlet.forward.REQUEST_URIDjavax.servlet.request_dispatcher.request_uriEjavax.servlet.request_dispatcher.REQUEST_URI
单选题On the Company wireless LAN, A client is searching for an access point (AP). What is the correct process order that this Company client and access point goes through in order to create a connection?()A association request/response, probe request/response, authentication request/responseB association request/response, authentication request/response, probe request/responseC probe request/response, authentication request/response, association request/responseD probe request/response, association request/response, authentication request/responseE None of the other alternatives apply
单选题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?()ADispatcher view=context.getDispatcher(viewURL);view.forward Request(request, response);BDispatcher view=request.getDispatcher(viewURL);view.forward Request(request, response);CRequestDispatcher view. =context.getRequestDispatcher(viewURL);view.forward(request,response);DRequestDispatcher view=request.getRequestDispatcher(viewURL);view.forward(request, response);
单选题过滤器使用()才能继续传递到下一个过滤器。Arequest.getRequestDispatcher().forward(request,response)BdoFilter()CdoPut()DdoChain()
单选题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?()Achain.forward(request, response);Bchain.doFilter(request, response);Crequest.forward(request, response);Drequest.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)%〉