多项选择题
For which three events can web application event listeners be registered?()
A.When a session is created
B.After a servlet is destroyed
C.When a session has timed out
D.When a cookie has been created
E.When a servlet has forwarded a request
F.When a session attribute value is changed
相关考题
-
多项选择题
Your web application uses a simple architecture in which servlets handle requests and then forward to aJSP using a request dispatcher. You need to pass information calculated in the servlet to the JSP for view generation.This information must NOT be accessible to any other servlet,JSP or session in the webapp. Which two techniques can you use to accomplish this goal?()
A.Add attributes to the session object.
B.Add attributes on the request object.
C.Add parameters to the request object.
D.Use the pageContext object to add request attributes.
E.Add parameters to the JSP’s URL when generating the request dispatcher. -
多项选择题
A developer chooses to avoid using SingleThreadModel but wants to ensure that data is updated in athread-safe manner. Which two can support this design goal?()
A.Store the data in a local variable.
B.Store the data in an instance variable.
C.Store the data in the HttpSession object.
D.Store the data in the ServletContext object.
E.Store the data in the ServletRequest object. -
单项选择题
WhichJSTLcodesnippetcanbeusedtoimportcontentfromanotherwebresource?()
A.<c:import url="foo.jsp"/>
B.<c:import page="foo.jsp"/>
C.<c:include url="foo.jsp"/>
D.<c:include page="foo.jsp"/>
