Line 13 is not valid for a servlet declaration.
Line 14 is not valid for a servlet declaration.
One instance of the servlet will be loaded at startup.
Ten instances of the servlet will be loaded at startup.
The servlet will be referenced by the name catalog in mappings.
第1题:
Which interface must a class implement to be informed of a session creation event?()
第2题:
Which two classes or interfaces provide a getSession method?()
第3题:
Given: 11.
第4题:
Which three are true about servlet filters?()
第5题:
Which element of the web application deployment descriptor defines the servlet class associated with aservlet instance?()
第6题:
Your filter class must implement an init method and a destroy method.
Your filter class must also implement javax.servlet.FilterChain.
When your filter chains to the next filter, it should pass the same arguments it received in its doFiltermethod.
The method that your filter invokes on the object it received that implements javax.servlet.FilterChaincan invoke either another filter or a servlet.
Your filter class must implement a doFilter method that takes, among other things, anHTTPServletRequest object and an HTTPServletResponse object.
第7题:
javax.servlet.http.HttpSessionListener
javax.servlet.http.HttpSessionValueListener
javax.servlet.http.HttpSessionBindingListener
javax.servlet.http.HttpSessionAttributeListener
第8题:
javax.servlet.http.HttpServletRequest
javax.servlet.http.HttpSessionContext
javax.servlet.http.HttpsServletResponse
javax.servlet.http.HttpSessionBindingEvent
javax.servlet.http.HttpSessionAttributeEvent
第9题:
The attribute foo is placed in the application
A ServletContextListener registered for that servlet is notified
A ServletAttributeListener registered for that servlet is notified
An HttpSessionAttributeListener registered for that servlet is notified
第10题:
final
static
native
public
private
abstract
protected
第11题:
Foo.beta() is a valid invocation of beta().
Foo.alpha() is a valid invocation of alpha().
Method beta() can directly call method alpha().
Method alpha() can directly call method beta().
第12题:
javax.servlet.http.HttpSessionListener
javax.servlet.http.HttpSessionValueListener
javax.servlet.http.HttpSessionBindingListener
javax.servlet.http.HttpSessionAttributeListener
第13题:
Which three are described in the standard web application deployment descriptor?()
第14题:
Which three are valid URL mappings to a servlet in a web deployment descriptor?()
第15题:
Given the HttpServlet code: getServletContext().setAttribute(“foo”, “value”); What is the result?()
第16题:
Which interface must a class implement so that instances of the class are notified after any object is added to a session? ()
第17题:
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.
第18题:
Line 13 is not valid for a servlet declaration.
Line 14 is not valid for a servlet declaration.
One instance of the servlet will be loaded at startup.
Ten instances of the servlet will be loaded at startup.
The servlet will be referenced by the name catalog in mappings.
第19题:
final
static
native
public
private
第20题:
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.
第21题:
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
第22题:
*/*
/*.do
myServlet
/Myservlet
/MyServlet/*
MyServlet/*.isp
第23题:
javax.servlet.http.HttpSessionListener
javax.servlet.http.HttpSessionBindingListener
javax.servlet.http.HttpSessionAttributeListener
javax.servlet.http.HttpSessionActivationListener