A. HttpSessionListener
B. HttpSessionBindingListener
C. HttpSessionTimedOutListener
D. HttpSessionAttributeListener
E. HttpSessionActivationListener
F. HttpSessionPassivatedListener
您可能感兴趣的试卷
你可能感兴趣的试题
Given that session is a valid HttpSession object:
Int max = session.getAttribute(“MyReallyLongName”);
Which is true?()
A. The value returned needs to be cast to an int.
B. The getAttribute methos takes two arguments.
C. Primitive CANNOT be stored in the HttpSession.
D. The HttpSession attribute name must NOT exceed eight characters.
A. All URLs returned by the server are rewritten.
B. An HttpSession object is created if necessary.
C. The user name and password of the user are checked.
D. The session ID is stored in the HTTP response as a cookie.
A. javax.servlet.http.HttpSessionListener
B. javax.servlet.http.HttpSessionBindingListener
C. javax.servlet.http.HttpSessionCreationListener
D. javax.servlet.http.HttpSessionActivationListener
A. The session object must be declared explicity.
B. The request and response objects are available implicity.
C. The output stream is available through the implicit outStream object.
D. The servlet context is available through the implicit servletContext object.
E. The JspContext for the tag file is available through the implicit jspContext object.
A. pageContext.getAttribute(“foo”);
B. getPageContext().getAttribute(“foo”);
C. pageContext.getApplicationScope(“foo”);
D. pageContext.getAttribute(“foo”,pageContext.APPLICATION_SCOPE).getAttribute(“foo”);
E. getPageContext().getScope(pageContext.APPLICATION_SCOPE).getAttribute(“foo”);
A. WAR files must be located in the web application library directory.
B. WAR files must contain the web application deployment descriptor.
C. WAR files must be created by using archive tools to designed specifically for that purpose.
D. The web container must serve the content of any META-INF directory located in a WAR file.
E. The web container must allow access to resources in JARs in the web application library directory
A. /WEB-INF
B. /META-INF
C. /WEB-INF/tlds
D. /META-INF/tlds
E. WEB-INF/resources
F. /META-INF/resources
A. ${cart = null }
B. <c:remove var=”cart” />
C. <c:remove var=”${cart}” />
D. <c:remove var=”cart” scope=”session” />
E. <c:remove scope=”session”>cart</c:remove>
F. <c:remove var=”${cart}” scope=”session” />
G. <c:remove scope=”session”>${cart}</c:remove>
B. ${requestScope[ ‘priority’ ] = ‘medium’ }
C. <c:set var=priority” value=”medium” />
D. <c:set var=”priority” scope=”request”>medium</C:set>
E. <c:set var=”priority” value=”medium” scope=”request” />
F. <c:set property=”priority” scope=”request”>medium</c:set>
G. <c:set property=”priority” value=”medium” scope=”request” />
A. url
B. link
C. param
D. import
E. redirect
最新试题
Which two classes or interfaces provide a getSession method?()
A custom JSP tag must be able to support an arbitrary number of attributes whose names are unknown when the tag class is designed. Which two are true? ()
Which two are true?()
A JSP page, current.jsp, is created to display the current weather report. The weather report is contained in a weather.html page that is rewritten every five minutes. Which line, appearing in current.jsp, ensures that the most recent version of weather.html is included whenever current.jsp is referenced?()
Which two authentication mechanisms provide weaker protection than other mechanisms?()
Within the web application deployment descriptor, which defines a valid JNDI environment entry()
Which path, relative to a web application’s root, identifies the web application’s deployment descriptor?()
Which statement, at line 16, retrieves an InputStream for the file /WEBINF/ nyresrc.bin()?
A developer is designing a web application which extensively uses EJBs and JMS. The developer finds that there is a lot of duplicated code to build the JNDI contexts to access the beans and queues. Further, because of the complexity, there are numerous errors in the code. Which J2EE design pattern provides a solution for this problem?()
Which the three interfaces need to be declared in the web application deployment descriptor? ()