Servlet使用()接口的forward和include方法进行通信。A、ServletContextB、ServletConfigC、RequestDispatcherD、HttpSession
Servlet使用()接口的forward和include方法进行通信。
- A、ServletContext
- B、ServletConfig
- C、RequestDispatcher
- D、HttpSession
相关考题:
Servlet里能实现重定向的方法有() A.运用javax.serblet.http.HttpSerbletRequest接口的sendRedirect方法B.运用javax.serblet.http.HttpSerbletResponse接口的sendRedirect方法C.运用javax.serblet.RequestDispatcher接口的forward方法D.运用javax.serblet.ResponseDispatcher接口的forward方法
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
Servlet2.4以后提供了哪几种对象的事件监听?()A、ServletContext监听Servlet的会话信息B、ServletContext监听Web上下文的信息C、HttpSession监听Servlet的会话信息D、ServletRequest监听Servlet的请求信息E、HttpSession监听Web上下文的信息
在Servlet里,能实现跳转的方法有()。A、运用javax.servlet.http.HttpServletRequest接口的sendRedirect方法B、运用javax.servlet.http.HttpServletResponse接口的sendRedirect方法C、运用javax.servlet.RequestDispatcher接口的forward方法D、运用javax.servlet.ResponseDispatcher接口的forward方法
关于servlet,下面那句话是错误的()A、不要使用java.beans.Beans.instantiate()方法。B、不再使用HttpSession时,应该尽早使用invalidate()方法释放。C、任何时候都不能使用Servlet的SingleThreadModel。D、不再使用JDBC资源时,应该尽早使用close()方法释放。
Servlet里能实现重定向的方法有() A、运用javax.serblet.http.HttpSerbletRequest接口的sendRedirect方法B、运用javax.serblet.http.HttpSerbletResponse接口的sendRedirect方法C、运用javax.serblet. RequestDispatcher接口的forward方法D、运用javax.serblet.ResponseDispatcher接口的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
下列关于RequestDispatcher接口描述错误的是()A、RequestDispatcher接口定义一个对象,该对象负责在服务器端接收来自客户端的请求并向他们发送资源B、RequestDispatcher接口被Servlet引擎用来实现Http客户端和Http会话两者之间的关联C、RequestDispatcher接口拥有forward()方法D、RequestDispatcher接口拥有include()方法E、RequestDispatcher接口的getId()方法返回会话ID--Servlet引擎设置的一个唯一关键字
在Servlet里,能正确获取session的语句是()。A、HttpSession session=request.getSession(true)B、HttpSession session=request.getHttpSession(true)C、HttpSession session=response.getSession(true)D、HttpSession session=response.getHttpSession(true)
下面关于HttpSession的说法正确的是()A、Servlet容器负责创建HttpSession对象B、每个HttpSession对象都有惟一的IDC、HttpSession的数据保存在客户端D、对客户端每次请求服务器都会创建HttpSession对象
J2EE中,HttpSession接口位于()包中。A、javax.servletB、javax.servlet.sessionC、javax.servlet.http.sessionD、javax.servlet.http
用什么方法可以从一个HTTP会话中获得对象?()A、getAttribute method of javax.servlet.SessionB、getAttribute method of javax.servlet.http.HttpSessionC、getAttribute method of javax.servlet.http.SessionD、getAttribute methodof javax.servlet.HttpSession
Servlet A receives a request that it forwards to servlet B within another web application in the same web container. Servlet A needs to share data with servlet B and that data must not be visible to other servlets in A’s web application. In which object can the data that A shares with B be stored?()A、 HttpSessionB、 ServletConfigC、 ServletContextD、 HttpServletRequestE、 HttpServletResponse
单选题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
单选题Servlet使用()接口的forward和include方法进行通信。AServletContextBServletConfigCRequestDispatcherDHttpSession
单选题关于servlet,下面那句话是错误的()A不要使用java.beans.Beans.instantiate()方法。B不再使用HttpSession时,应该尽早使用invalidate()方法释放。C任何时候都不能使用Servlet的SingleThreadModel。D不再使用JDBC资源时,应该尽早使用close()方法释放。
多选题Servlet通信方法包括哪些?()ARequestDispatcher接口的forward()方法BRequestDispatcher接口的include()方法CRequestDispatcher接口的linked()方法DRequestDispatcher接口的communion()方法
单选题J2EE中,HttpSession接口位于()包中。Ajavax.servletBjavax.servlet.sessionCjavax.servlet.http.sessionDjavax.servlet.http
单选题下列关于ServletConfig接口说法错误的是()AServletConfig接口是一个由Servlet容器使用的Servlet配置对象BServletConfig接口用于在Servlet初始化时向它传递信息CServletConfig接口拥有getInitParameter()方法DServletConfig接口拥有getServletName()方法EServletConfig接口的getServletContext()方法不返回任何值
单选题Servlet A receives a request that it forwards to servlet B within another web application in the same web container. Servlet A needs to share data with servlet B and that data must not be visible to other servlets in A’s web application. In which object can the data that A shares with B be stored?()A HttpSessionB ServletConfigC ServletContextD HttpServletRequestE HttpServletResponse
多选题Servlet里能实现重定向的方法有()A运用javax.serblet.http.HttpSerbletRequest接口的sendRedirect方法B运用javax.serblet.http.HttpSerbletResponse接口的sendRedirect方法C运用javax.serblet. RequestDispatcher接口的forward方法D运用javax.serblet.ResponseDispatcher接口的forward方法
多选题在Servlet里,能实现跳转的方法有()。A运用javax.servlet.http.HttpServletRequest接口的sendRedirect方法B运用javax.servlet.http.HttpServletResponse接口的sendRedirect方法C运用javax.servlet.RequestDispatcher接口的forward方法D运用javax.servlet.ResponseDispatcher接口的forward方法