单项选择题
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?()
A.
B.
C.
D.
E.
相关考题
-
单项选择题
What code, inserted at line 21, is called prior to a session being migrated to a different JVM assuming the web application containing MyExample is deployed in a container which supports distributed applications?()
A. public void valueUnbound(HttpSessionEvent ev){...}
B. public void sessionPassivated(HttpSessionEvent ev){...}
C. public void sessionDidActivate(HttpSessionEvent ev){...}
D. public void sessionWillPassivate(HttpSessionEvent ev){...} -
多项选择题
Whichthe threearetrueaboutservletfilters?()
A. A filter must implement the destroy method
B. A filter must implement the doFilter method
C. A servlet may have multiple filters associated with it
D. A servlet that is to have a filter applied to it must implement the javax.servlet.FilterChain interface
E. A filter that is part of a filter chain passes control to the next filter in the chain by invoking the filterChain forward method
F. For eachelement in the web application deployment descriptor, multiple instances of a filter may be created by the web container -
多项选择题
Assume session is an HttpSession, and is not referenced anywhere else in ServletA. Which two changes, taken together, ensure that value is equal to “Hello” on line 23? ()
A.A
B.B
C.C
D.D
E.E
