Which two prevent a servlet from handling requests.?()
第1题:
Which is the true choice about the web container request processing model()?
第2题:
Servlet接受请求时,会调用()。
第3题:
下面关于Servlet生命周期的描述不正确的是()。
第4题:
Servlet的初始化参数只能在Servlet的()方法中获取。
第5题:
Which two classes or interfaces provide a getSession method?()
第6题:
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?()
第7题:
Which is true about the web container request processing model?()
第8题:
REQUEST_URI
javax.servlet.forward.request_uri
javax.servlet.forward.REQUEST_URI
javax.servlet.request_dispatcher.request_uri
javax.servlet.request_dispatcher.REQUEST_URI
第9题:
javax.servlet.http.HttpServletRequest
javax.servlet.http.HttpSessionContext
javax.servlet.http.HttpsServletResponse
javax.servlet.http.HttpSessionBindingEvent
javax.servlet.http.HttpSessionAttributeEvent
第10题:
Servlet实例由Servlet容器负责加载和创建
Servlet容器调用init()方法初始化Servlet,每加载一次Servlet都会执行一次init()方法
Servlet初始化完毕后,就处于能响应请求的就绪状态
Servlet的destroy()方法指明哪些资源可以被系统回收
第11题:
由servlet容器调用
servlet容器只调用一次init方法来初始化一个servlet
在servlet接受到客户请求前,init方法必须成功完成
init方法不能被覆盖(重写)
第12题:
HttpSession
ServletConfig
ServletContext
HttpServletRequest
HttpServletResponse
第13题:
当访问一个Servlet时,以下Servlet中的哪个方法先被执行?()
第14题:
当访问一个Servlet时,Servlet中的方法执行顺序是()。
第15题:
关于servlet的init方法,说法正确的是()。
第16题:
用什么方法可以从一个HTTP会话中获得对象?()
第17题:
Which three are true about servlet filters?()
第18题:
You want to create a filter for your web application and your filter will implement javax.servlet.Filter. Which two statements are true?()
第19题:
A filter must implement the destroy method.
A filter must implement the doFilter method.
A servlet may have multiple filters associated with it.
A servlet that is to have a filter applied to it must implement the javax.servlet.FilterChain interface.
A filter that is part of a filter chain passes control to the next filter in the chain by invoking the FilterChain.forward method.
第20题:
The init method on a filter is called the first time a servlet mapped to that filter is invoked.
A filter defined for a servlet must always forward control to the next resource in the filter chain.
Filters associated with a named servlet are applied in the order they appear in the web application deployment descriptor file.
If the init method on a filter throws an UnavailableException, then the container will make no further attempt to execute it.
第21题:
The servlet’s init method returns a non-zero status.
The servlet’s init method throws a Servlet Exception
The servlet’s init method sets the Servlet Response’s context length to 0
The servlet’s init method sets the Servlet Response’s content type to null.
The servlet’s init method does NOT return within a time period defined by the servlet container.
第22题:
在Servlet实例化之后,Servlet容器会调用init()方法。
Servlet 通过init()方法可以实现一些初始化工作,如建立数据库连接,获取配置信息等
init()方法可以被多次调用
第23题:
init() service() destroy()
init() destroy() service()
service() init() destroy()
service() destroy() init()