forward之后可以使用原来的request对象,而且效率较高。

forward之后可以使用原来的request对象,而且效率较高。


相关考题:

在J2EE中,对于标记,描述正确的是()。 A.jsp:param是jsp:include、jsp:forward标记的子标记B.如果aa.jsp有代码:jsp:forwardpage=next.jspjsp:paramname=namevalue=jb-aptech//jsp:forward,则在next.jsp中可以使用request.getParameter(name);把属性name的值取出来C.如果aa.jsp有代码:jsp:forwardpage=next.jspjsp:paramname=namevalue=jb-aptech//jsp:forward,则在next.jsp中可以使用request.getAttribute(name);把属性name的值取出来D.如果jsp:param标记不放在jsp:forward标记内,也就是不作为jsp:forward标记的子标记,则使用浏览器查看时会显示错误页面

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

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

ServletAforwardedarequesttoservletBusingtheforwardmethodofRequestDispatcher.WhatattributeinB’srequestobjectcontainstheURIoftheoriginalrequestreceivedbyservletA?() 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

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

sendRedirect之后不可以使用原来的request对象,而且效率较低。

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

以下说法正确的是:()A、通过POST方法提交form表单后,在View函数中可以通过request.POST获取到数据B、通过GET方法提交后,在View函数中可以通过request.GET获取到数据C、request.GET和request.POST是类字典对象,可以使用for遍历数据D、可以通过request.body获取到rawPOST数据

使用Request对象的QueryString集合可以检索HTTP查询字符串中变量的值。

jsp:forward和sendRedirect都是用来做页面跳转的,描述错误的是?()A、forward之后可以使用原来的request对象,而且效率较高B、sendRedirect之后不可以使用原来的request对象,而且效率较低C、forward地址栏不变化,只能在Web应用程序内的页面间跳转D、forward地址栏变化,可以跳转到任何页面和机器

在J2EE中,对于标记,描述正确的是()。     A、jsp:param是jsp:include、jsp:forward标记的子标记  B、如果aa.jsp有代码:jsp:forward page="next.jsp"jsp:param name="name" value="jb-aptech" //jsp:forward,则在next.jsp中可以使用request.getParameter("name");把属性name的值取出来 C、如果aa.jsp有代码:jsp:forward page="next.jsp"jsp:param name="name" value="jb-aptech" //jsp:forward,则在next.jsp中可以使用request.getAttribute("name");把属性name的值取出来 D、如果jsp:param标记不放在jsp:forward标记内,也就是不作为jsp:forward标记的子标记,则使用浏览器查看时会显示错误页面

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

光电器件()、可以实现非接触测量,而且有较高的可靠性。A、效率高B、响应快C、结构简单D、使用方便

在J2EE中以下对Request.Dispatcher描述正确的是()。A、JSP中有一个隐含的对象diapatcher,它的类型是Request.DispatcherB、ServletConfig有一个方法,getRequestDispatcher可以取回Request.Dispatche对象C、Request.Dispatche有一个方法,forward可以把请求继续传递给别的servlet或者JSP界面D、JSP中有个隐含的默认对象request,它的类型是Request.Dispatchet

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

在扩展标签里我们可以使用()对象来获得request对象。A、applicationB、sessionC、pageContextD、servletcontext

在Java EE中,以下对RequestDispatcher描述正确的是()。A、JSP中有个隐含的对象dispatcher,它的类型是RequestDispatcherB、ServletConfig有一个方法:getRequestDispatcher可以返回RequestDipatcher对象C、RequestDipatcher有一个方法:forward可以把请求继续传递给别的Servlet或者JSP界面D、JSP中有个隐含的默认对象request,它的类型是RequestDipatcher

如果要在控制器(action)里给一个视图传递一个值,我们希望能使用request对象的setAttribute来传递,那么在配置forward转发路径下面哪个属性一定不能为真?()A、redirectB、pathC、nameD、context relative

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

单选题jsp:forward和sendRedirect都是用来做页面跳转的,描述错误的是?()Aforward之后可以使用原来的request对象,而且效率较高BsendRedirect之后不可以使用原来的request对象,而且效率较低Cforward地址栏不变化,只能在Web应用程序内的页面间跳转Dforward地址栏变化,可以跳转到任何页面和机器

单选题在J2EE中以下对Request.Dispatcher描述正确的是()。AJSP中有一个隐含的对象diapatcher,它的类型是Request.DispatcherBServletConfig有一个方法,getRequestDispatcher可以取回Request.Dispatche对象CRequest.Dispatche有一个方法,forward可以把请求继续传递给别的servlet或者JSP界面DJSP中有个隐含的默认对象request,它的类型是Request.Dispatchet

判断题sendRedirect之后不可以使用原来的request对象,而且效率较低。A对B错

单选题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

单选题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?()Achain.forward(request, response);Bchain.doFilter(request, response);Crequest.forward(request, response);Drequest.doFilter(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);

单选题能够保留请求作用域中数据的转向方式是()。Aresponse.forward()Bresponse.sendRedirect()Csession.getRequestDispatcher().forward(request,response)Drequest.getRequestDispatcher().forward(request,response)

判断题forward之后可以使用原来的request对象,而且效率较高。A对B错