A. B. C. D.
在JSP中,在web.xml中,有如下代碼: 以下描述,正確的是()。
A.定義了默認(rèn)的會(huì)話時(shí)時(shí)長(zhǎng),時(shí)長(zhǎng)為30秒 B.可以使用HttpSession類(lèi)的getMaxInactiveInterval()方法把該值取出來(lái) C.定義了默認(rèn)的會(huì)話超時(shí)時(shí)長(zhǎng),時(shí)長(zhǎng)為30小時(shí) D.可以使用Session類(lèi)的getMaxInactiveInterval()方法把該值取出來(lái)
在JSP中,在web.xml有如下代碼段: 在Servlet中()把webmaster的值:取出來(lái)。
A.使用RequestDispatcher的getInitParameter(“webmaster”)方法 B.使用ServletContext的getInitParameter(“webmaster”)方法 C.使用ServletConfig的getInitParameter(“webmaster”)方法 D.使用GenericServlet的getInitParameter(“webmaster”)方法