网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
Which three are described in the standard web application deployment descriptor?()
- A、session configuration
- B、MIME type mappings
- C、context root for the application
- D、servlet instance pool configuration
- E、web container default port bindings
- F、Servlet Context initialization parameters
参考答案
更多 “Which three are described in the standard web application deployment descriptor?()A、session configurationB、MIME type mappingsC、context root for the applicationD、servlet instance pool configurationE、web container default port bindingsF、Servlet Context initialization parameters” 相关考题
考题
Which two prevent a servlet from handling requests.?()A、 The servlet’s init method returns a non-zero status.B、 The servlet’s init method throws a Servlet ExceptionC、 The servlet’s init method sets the Servlet Response’s context length to 0D、 The servlet’s init method sets the Servlet Response’s content type to null.E、 The servlet’s init method does NOT return within a time period defined by the servlet container.
考题
Given an Http Session session. A Servlet Request request. And a Servlet Context context. Which retrieves a URL to /WEB INF/ my config.xml within a web application?()A、 session.get Resource (“/WEB-INF/myconfig.xml”)B、 request.get Resource (“/WEB-INF/myconfig.xml”)C、 context.get Resource (“/WEB-INF/myconfig.xml”)D、 get Class ().get Resource (“/WEB-INF/myconfig.xml”)
考题
Which thethree are valid URL mappings to a servlet in a web deployment descriptor? ()A、 */*B、 /*.doC、 myServletD、 /MyservletE、 /MyServlet/*F、 MyServlet/*.isp
考题
Which the three are true about servlet filters?()A、 A filter must implement the destroy methodB、 A filter must implement the doFilter methodC、 A servlet may have multiple filters associated with itD、 A servlet that is to have a filter applied to it must implement the javax.servlet.FilterChain interfaceE、 A filter that is part of a filter chain passes control to the next filter in the chain by invoking the filterChain forward methodF、 For each element in the web application deployment descriptor, multiple instances of a filter may be created by the web container
考题
Which three are described in the standard web application deployment descriptor?() A、 session configurationB、 MIME type mappingsC、 context root for the applicationD、 servlet instance pool configurationE、 web container default port bindingsF、 ServletContext initialization parameters
考题
Which is the true choice about the web container request processing model()?A、 The init method on a filter is called the first time a servlet mapped to that filter is invokedB、 A filter defined for a servlet must always forward control to the next resource in the filter chain.C、 Filters associated with a named servlet are applied in the order they appear in the web application deployment descriptor fileD、 If the init method on a filter throws an UnavailableException, then the container will make no further attempt to execute it
考题
Which element is the parent of the tag in the web application deployment descriptor? ()A、 web-app B、 filters C、 servlet D、 filter-list
考题
Which interface must a session attribute implement if it needs to be notified when a web container persistsa session?()A、javax.servlet.http.HttpSessionListenerB、javax.servlet.http.HttpSessionBindingListenerC、javax.servlet.http.HttpSessionAttributeListenerD、javax.servlet.http.HttpSessionActivationListener
考题
For which three events can web application event listeners be registered?()A、When a session is createdB、After a servlet is destroyedC、When a session has timed outD、When a cookie has been createdE、When a servlet has forwarded a requestF、When a session attribute value is changed
考题
Which three are valid URL mappings to a servlet in a web deployment descriptor?()A、*/*B、*.doC、MyServletD、/MyServletE、/MyServlet/*F、MyServlet/*.jsp
考题
Which element of the web application deployment descriptor defines the servlet class associated with aservlet instance?()A、classbr/B、webappbr/C、servletbr/D、codebasebr/E、servlet-class
考题
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
考题
Which three web application deployment descriptor elements allow web components to gain references toresources or EJB components?()A、ejb-refB、jdbc-refC、servlet-refD、resource-refE、javamail-refF、resource-env-ref
考题
Which is true about the web container request processing model?()A、The init method on a filter is called the first time a servlet mapped to that filter is invoked.B、A filter defined for a servlet must always forward control to the next resource in the filter chain.C、Filters associated with a named servlet are applied in the order they appear in the web application deployment descriptor file.D、If the init method on a filter throws an UnavailableException, then the container will make no further attempt to execute it.
考题
多选题Which three are described in the standard web application deployment descriptor?()Asession configurationBMIME type mappingsCcontext root for the applicationDservlet instance pool configurationEweb container default port bindingsFServlet Context initialization parameters
考题
单选题Which element is the parent of the tag in the web application deployment descriptor? ()A
web-app B
filters C
servlet D
filter-list
考题
多选题Which three are described in the standard web application deployment descriptor?()Asession configurationBMIME type mappingsCcontext root for the applicationDservlet instance pool configurationEweb container default port bindingsFServletContext initialization parameters
考题
单选题Which is true about the web container request processing model?()A
The init method on a filter is called the first time a servlet mapped to that filter is invoked.B
A filter defined for a servlet must always forward control to the next resource in the filter chain.C
Filters associated with a named servlet are applied in the order they appear in the web application deployment descriptor file.D
If the init method on a filter throws an UnavailableException, then the container will make no further attempt to execute it.
考题
多选题For which three events can web application event listeners be registered? ()Awhen a session is createdBafter a servlet is destroyedCwhen a session has timed outDwhen a cookie has been createdEwhen a servlet has forwarded a requestFwhen a session attribute value is changed
考题
多选题Which two prevent a servlet from handling requests.?()AThe servlet’s init method returns a non-zero status.BThe servlet’s init method throws a Servlet ExceptionCThe servlet’s init method sets the Servlet Response’s context length to 0DThe servlet’s init method sets the Servlet Response’s content type to null.EThe servlet’s init method does NOT return within a time period defined by the servlet container.
考题
多选题Which the three are true about servlet filters?()AA filter must implement the destroy methodBA filter must implement the doFilter methodCA servlet may have multiple filters associated with itDA servlet that is to have a filter applied to it must implement the javax.servlet.FilterChain interfaceEA filter that is part of a filter chain passes control to the next filter in the chain by invoking the filterChain forward methodFFor each element in the web application deployment descriptor, multiple instances of a filter may be created by the web container
考题
单选题Which element of the web application deployment descriptor defines the servlet class associated with aservlet instance?()A
classbr/B
webappbr/C
servletbr/D
codebasebr/E
servlet-class
考题
多选题Which thethree are valid URL mappings to a servlet in a web deployment descriptor? ()A*/*B/*.doCmyServletD/MyservletE/MyServlet/*FMyServlet/*.isp
考题
单选题Within a web application deployment descriptor, which maps the com.example.LoginServlet servlet to /utils/LoginServlet?()A
AB
BC
CD
D
考题
单选题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
考题
单选题Which interface must a session attribute implement if it needs to be notified when a web container persistsa session?()A
javax.servlet.http.HttpSessionListenerB
javax.servlet.http.HttpSessionBindingListenerC
javax.servlet.http.HttpSessionAttributeListenerD
javax.servlet.http.HttpSessionActivationListener
考题
多选题Which three are valid URL mappings to a servlet in a web deployment descriptor?()A*/*B*.doCMyServletD/MyServletE/MyServlet/*FMyServlet/*.jsp
热门标签
最新试卷