login.html中存在如下代码:
当表单提交时,下列选项中,能够获取到文本框中值的是( )。 A. request.getAttribute(“userName”);
B. request.getParameter(“myName”);
C. request.getParameter(“userName”);
D. request.getAttribute(“myName”);
查看答案
下面选项中,用于监听HttpSession域对象创建及销毁的监听器接口是( )
A. HttpSessionAttributeListener
B. HttpSessionListener
C. HttpSessionBindingListener
D. HttpSessionActivationListener
下面选项中,用于获取web.xml中元素的值的方法是()
A. getServletNames()
B. getServletName()
C. getServletName(String name)
D. getServletInfo()
则空闲状态2秒分钟后,HttpSessionListener中将被调用的方法是()
A. sessionCreated()
B. initializedSession ()
C. destroyedSession()
D. sessionDestroyed()
下面选项中,用于监听ServletContext域对象创建及销毁的监听器接口是( )
A. ServletContextListener
B. ServletContextAttributeListener
C. ServletContextBindingListener
D. ServletContextActivationListener