单项选择题
You need to create a servlet filter that stores all request headers to a database for all requests to the webapplication’s home page "/index.jsp".
Which HttpServletRequest method allows you to retrieve all of therequest headers?()
A.String[] getHeaderNames()
B.String[] getRequestHeaders()
C.java.util.Iterator getHeaderNames()
D.java.util.Iterator getRequestHeaders()
E.java.util.Enumeration getHeaderNames()
相关考题
-
多项选择题
ForanHttpServletResponseresponse,whichtwocreateacustomheader?()
A.response.setHeader("X-MyHeader", "34");
B.response.addHeader("X-MyHeader", "34");
C.response.setHeader(new HttpHeader("X-MyHeader", "34"));
D.response.addHeader(new HttpHeader("X-MyHeader", "34"));
E.response.addHeader(new ServletHeader("X-MyHeader", "34")); -
单项选择题
Click the Exhibit button. Given the HTML form: 1. 2. 3. 4.Name: 5.Price: 6. 7. 8. 9. Assume the product attribute does NOT yet exist in any scope. Which code snippet, in submit.jsp,instantiates an instance of com.example.Product that contains the results of the form submission?()
A.
B.
C.
D. -
多项选择题
A JSP page needs to instantiate a JavaBean to be used by only that page. Which two jsp:useBeanattributes must be used to access this attribute in the JSP page?()
A.Id
B.Type
C.Name
D.Class
E.Yscope
