Leads4pass > Oracle > Others Oracle Certifications > 1Z0-858 > 1Z0-858 Online Practice Questions and Answers

1Z0-858 Online Practice Questions and Answers

Questions 4

Place the corresponding resources and directories in the proper web application deployment structure.

Select and Place:

Select and Place:

Buy Now
Questions 5

Place the servlet name onto every request URL, relative to the web application context root, that will invoke that servlet. Every request URL must be filled.

Select and Place:

Select and Place:

Buy Now
Questions 6

One of the use cases in your web application uses many session-scoped attributes. At the end of the use case, you want to clear out this set of attributes from the session object. Assume that this static variable holds this set of attribute names:

201.

private static final Set USE_CASE_ATTRS;

202.

static {

203.

USE_CASE_ATTRS.add("customerOID");

204.

USE_CASE_ATTRS.add("custMgrBean");

205.

USE_CASE_ATTRS.add("orderOID");

206.

USE_CASE_ATTRS.add("orderMgrBean");

207.

}

Which code snippet deletes these attributes from the session object?

A. session.removeAll(USE_CASE_ATTRS);

B. for ( String attr : USE_CASE_ATTRS ) {session.remove(attr);}

C. for ( String attr : USE_CASE_ATTRS ) {session.removeAttribute(attr);}

D. for ( String attr : USE_CASE_ATTRS ) {session.deleteAttribute(attr);}

E. session.deleteAllAttributes(USE_CASE_ATTRS);

Buy Now
Questions 7

Which two JSTL URL-related tags perform URL rewriting? (Choose two.)

A. url

B. link

C. param

D. import

E. redirect

Buy Now
Questions 8

A custom JSP tag must be able to support an arbitrary number of attributes whose names are unknown when the tag class is designed. Which two are true? (Choose two.)

A. The element in the echo tag TLD must have the value JSP.

B. The echo tag handler must define the setAttribute(String key, String value) method.

C. The true element must appear in the echo tag TLD.

D. The class implementing the echo tag handler must implement the javax.servlet.jsp.tagext.IterationTag interface.

E. The class implementing the echo tag handler must implement the javax.servlet.jsp.tagext.DynamicAttributes interface.

Buy Now
Questions 9

Which two are true about the JSTL core iteration custom tags? (Choose two.)

A. It may iterate over arrays, collections, maps, and strings.

B. The body of the tag may contain EL code, but not scripting code.

C. When looping over collections, a loop status object may be used in the tag body.

D. It may iterate over a map, but only the key of the mapping may be used in the tag body.

E. When looping over integers (for example begin='1' end='10'), a loop status object may not be used in the tag body.

Buy Now
Questions 10

You are creating a JSP page to display a collection of data. This data can be displayed in several different ways so the architect on your project decided to create a generic servlet that generates a comma-delimited string so that various

pages can render the data in different ways. This servlet takes on request parameter:

objectID. Assume that this servlet is mapped to the URL pattern: /WEB- INF/data.

In the JSP you are creating, you need to split this string into its elements separated by commas and generate an HTML

    list from the data.

    Which JSTL code snippet will accomplish this goal?

    A.

    • $ {item}

    B.

    • $ {item}

    C.

    • $ {item}

    D.

    • $ {item}
Buy Now
Questions 11

Which method must be used to encode a URL passed as an argument to HttpServletResponse.sendRedirect when using URL rewriting for session tracking?

A. ServletResponse.encodeURL

B. HttpServletResponse.encodeURL

C. ServletResponse.encodeRedirectURL

D. HttpServletResponse.encodeRedirectURL

Buy Now
Questions 12

Which two security mechanisms can be directed through a sub-element of the element in a web application deployment descriptor? (Choose two.)

A. authorization

B. data integrity

C. confidentiality

D. authentication

Buy Now
Questions 13

Given:

6.

7.

<%="processing" %>

8.

and a custom tag handler for foo which extends TagSupport.

Which two are true about the tag handler referenced by foo? (Choose two.)

A. The doStartTag method is called once.

B. The doAfterBody method is NOT called.

C. The EVAL_PAGE constant is a valid return value for the doEndTag method.

D. The SKIP_PAGE constant is a valid return value for the doStartTag method.

E. The EVAL_BODY_BUFFERED constant is a valid return value for the doStartTag method.

Buy Now
Exam Code: 1Z0-858
Exam Name: Java Enterprise Edition 5 Web Component Developer Certified Professional Exam
Last Update: Nov 18, 2024
Questions: 276
10%OFF Coupon Code: SAVE10

PDF (Q&A)

$49.99

VCE

$55.99

PDF + VCE

$65.99