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

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

Servlet使用()接口的forward和include方法进行通信。

  • A、ServletContext
  • B、ServletConfig
  • C、RequestDispatcher
  • D、HttpSession

参考答案

更多 “Servlet使用()接口的forward和include方法进行通信。A、ServletContextB、ServletConfigC、RequestDispatcherD、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接口的方法?()A、doGet方法B、doPost方法C、init方法D、forward方法

考题 Requestdispatcher的forward方法和include方法的区别是forward可以到另外一个web应用的资源,而include只能到同一web的另外资源。

考题 在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对象

考题 哪些方法可以实现servlet的请求调度?()A、include机制B、forward机制C、Servlet ChainingD、sendRedirect

考题 J2EE中,HttpSession接口位于()包中。A、javax.servletB、javax.servlet.sessionC、javax.servlet.http.sessionD、javax.servlet.http

考题 将fum声明为何种类型的对象,可以使fum作为一个属性来存储?()A、ServletContextB、HttpServletC、ServletConfigD、Servlet

考题 用什么方法可以从一个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?()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

考题 单选题Servlet使用()接口的forward和include方法进行通信。A ServletContextB ServletConfigC RequestDispatcherD HttpSession

考题 单选题关于servlet,下面那句话是错误的()A 不要使用java.beans.Beans.instantiate()方法。B 不再使用HttpSession时,应该尽早使用invalidate()方法释放。C 任何时候都不能使用Servlet的SingleThreadModel。D 不再使用JDBC资源时,应该尽早使用close()方法释放。

考题 判断题Requestdispatcher的forward方法和include方法的区别是forward可以到另外一个web应用的资源,而include只能到同一web的另外资源。A 对B 错

考题 多选题Servlet通信方法包括哪些?()ARequestDispatcher接口的forward()方法BRequestDispatcher接口的include()方法CRequestDispatcher接口的linked()方法DRequestDispatcher接口的communion()方法

考题 单选题J2EE中,HttpSession接口位于()包中。A javax.servletB javax.servlet.sessionC javax.servlet.http.sessionD javax.servlet.http

考题 单选题下列关于ServletConfig接口说法错误的是()A ServletConfig接口是一个由Servlet容器使用的Servlet配置对象B ServletConfig接口用于在Servlet初始化时向它传递信息C ServletConfig接口拥有getInitParameter()方法D ServletConfig接口拥有getServletName()方法E ServletConfig接口的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方法