Apache
Tomcat
Weblogic Server
WebSphere
第1题:
下面哪些产品是,或者包含Servlet Container()
第2题:
下面哪些概念是包含在产品组合中的()
第3题:
下面关于ServletException的方法说法正确的是()
第4题:
关于客户端、Servlet与Web容器的交互说法错误的是()。
第5题:
下面有关Servlet的描述错误的是()。
第6题:
Given this fragment from a Java EE deployment descriptor: 124.
第7题:
javax.servlet.http.HttpSessionListener
javax.servlet.http.HttpSessionBindingListener
javax.servlet.http.HttpSessionAttributeListener
javax.servlet.http.HttpSessionActivationListener
第8题:
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.
第9题:
一个基于servlet应用的客户通常不直接和servlet通信,而是由Web应用服务器通过Java Servlet API调用servlet来实现请求servlet的服务
Servlet是由Web应用服务器中的Web Container管理的。Web容器的角色是管理装载和初始化servlet,处理服务请求,卸载或撤销servlet
一般来说,某一时刻在web容器中只有一个特定的servlet对象的实例,这是servlet持久性的基本原理。每次客户端调用servlet时,web容器都负责实现servlet的初始化
每一个客户对servlet的请求都会创建servlet的一个对象实例。Web容器负责创建每个处理请求的新实例。另外它还负责最后的卸载或重新安装servlet。卸载和重新安装通常发生在web应用服务器崩溃或者支持servlet的文件改变时
第10题:
HttpSession
ServletConfig
ServletContext
HttpServletRequest
HttpServletResponse
第11题:
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
For each
第12题:
一个Servlet就是Java中的一个类
Servlet是位于Web服务器内部的服务器端的Java应用程序
Servlet可以由客户端的浏览器解释执行
加载Servlet的Web服务器必须包含支持Servlet的Java虚拟机
第13题:
Which three are described in the standard web application deployment descriptor?()
第14题:
Which is the true choice about the web container request processing model()?
第15题:
下面关于Servlet生命周期的描述不正确的是()。
第16题:
扩展标签使用的是下面的哪个包?()
第17题:
Which interface must a session attribute implement if it needs to be notified when a web container persistsa session?()
第18题:
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?()
第19题:
Servlet实例由Servlet容器负责加载和创建
Servlet容器调用init()方法初始化Servlet,每加载一次Servlet都会执行一次init()方法
Servlet初始化完毕后,就处于能响应请求的就绪状态
Servlet的destroy()方法指明哪些资源可以被系统回收
第20题:
This deployment descriptor is NOT valid.
The container first looks in the register directory for beta.html.
The container first looks in the register directory for alpha.html.
The container first looks for a servlet mapping in the deployment descriptor.
第21题:
Apache
Tomcat
Weblogic Server
WebSphere
第22题:
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.
第23题:
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
第24题:
JSP container
Servlet container
EJBs container
JavaBeans container