多項(xiàng)選擇題

A session-scoped attribute is stored by a servlet, and then that servlet forwards to a JSP page.
Which threejsp:useBean attributes must be used to access this attribute in the JSP page?()

A.id
B.name
C.bean
D.type
E.scope


您可能感興趣的試卷

你可能感興趣的試題

1.單項(xiàng)選擇題Which JSP standard action can be used to import content from a resource called foo.jsp?()

A.<jsp:import file=’foo.jsp’ />
B.<jsp:import page=’foo.jsp’ />
C.<jsp:include page=’foo.jsp’ />
D.<jsp:include file=’foo.jsp’ />

2.多項(xiàng)選擇題For a given ServletResponse response,which two retrieve an object for writing text data?()

A.response.getWriter()
B.response.getOutputStream()
C.response.getOutputWriter()
D.response.getWriter().getOutputStream()
E.response.getWriter(Writer.OUTPUT_TEXT)

3.多項(xiàng)選擇題

Given a header in an HTTP request:X-Retries:4
Which two retrieve the value of the header from a given HttpServletRequest request?()

A.Request.getHeader("X-Retries")
B.Request.getIntHeader("X-Retries")
C.Request.getRequestHeader("X-Retries")
D.Request.getHeaders("X-Retries").get(0)
E.Request.getRequestHeaders("X-Retries").get(0)

5.單項(xiàng)選擇題Given an HttpSession session,a ServletRequest request,and a ServletContext context,which retrieves aURL to /WEB-INF/myconfig.xml within a web application?()

A.session.getResource("/WEB-INF/myconfig.xml")
B.request.getResource("/WEB-INF/myconfig.xml")
C.context.getResource("/WEB-INF/myconfig.xml")
D.getClass().getResource("/WEB-INF/myconfig.xml")

最新試題

Which element of a web application deployment descriptor  element is required?()

題型:?jiǎn)雾?xiàng)選擇題

Click the 'Select and Place' button.Place the events in the order they occur.

題型:?jiǎn)柎痤}

The JSP developer wants a comment to be visible in the final output to the browser.Which comment styleneeds to be used in a JSP page?()

題型:?jiǎn)雾?xiàng)選擇題

In which three directories, relative to a web application’s root, may a tag library descriptor file reside whendeployed directly into a web application?()

題型:多項(xiàng)選擇題

Which is true about the web container request processing model?()

題型:?jiǎn)雾?xiàng)選擇題

A web browser need NOT always perform a complete request for a particular page that it suspects mightNOT have changed. The HTTP specification provides a mechanism for the browser to retrieve only a partialresponse from the web server; this response includes information, such as the Last-Modified date but NOTthe body of the page.Which HTTP method will the browser use to retrieve such a partial response?()

題型:?jiǎn)雾?xiàng)選擇題

Click the ’Select and Place’ button.Place the events in the order they occur.

題型:?jiǎn)柎痤}

Given a Filter class definition with this method:21.public void doFilter(ServletRequest request,22.ServletResponse response,23.FilterChain chain)24.throws ServletException, IOException {25.// insert code here26.}Which should you insert at line 25 to properly invoke the next filter in the chain, or the target servlet if thereare no more filters?()

題型:?jiǎn)雾?xiàng)選擇題

You are building a web application with a scheduling component. On the JSP, you need to show the currentdate, the date of the previous week, and the date of the next week. To help you present this information,you have created the following EL functions in the ’d’ namespace: name: curDate; signature: java.util.DatecurrentDate() name: addWeek; signature: java.util.Date addWeek(java.util.Date, int) name: dateString;signature:java.util.String getDateString(java.util.Date)Which EL code snippet will generate the string for the previousweek?

題型:?jiǎn)雾?xiàng)選擇題

Which two are valid and equivalent?()

題型:多項(xiàng)選擇題