Given a header in an HI IP request: X-Retries: 4 A Which two retrieve the value of the header from a given HttpServletRequest request? (Choose two) A. request-getHeader("X-Retries") B. request.getlntHeader("X-Retries") C. request.getRequestHeader("X-Retries") D. request.getHeaders{"X-Retries").get(0) E. request.getRequestHeaders("X-Retries").get(0)

Given an HttpServletRequestrequest and HttpResponseresponse, which sets a cookie “username” with the value “joe” in a servlet? A. request.addCookie("username", "joe") B. request.setCookie("username", "joe") C. response.addCookie("username", "joe") D. request.addHeader(new Cookie("username", "joe")) E. request.addCookie(new Cookie("username", "joe")) F. response.addCookie(new Cookie("username", "joe")) G. response.addHeader(new…

Given the element from the web application deployment descriptor: <jsp – property – group> <url – pattern>/main/page1.jsp</url – pattern> <scripting – invalid>true</scripting – invalid> </jsp—property—group> And given that /main/page1.jsp contains: <% int i = 12; %> <b> <%= i %>…

Given: 1. <% int[] nums = {42,420,4200}; 2. request.setAttribute("foo", nums); %> 3. ${5 + 3 It 6} 4. S(requestScope[‘foo’][0] ne 10 div0> 5. ${10 div 0} What is the result? A. true true B. false true C. false true 0…