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

1Z0-858 Online Practice Questions and Answers

Questions 4

Given a servlet mapped to /control, place the correct URI segment returned as a String on the corresponding HttpServletRequest method call for the URI: /myapp/control/processorder.

Select and Place:

Select and Place:

Buy Now
Questions 5

Given the JSP code:

10.

11.

12.

13.

Hello, ${customer.title} ${customer.lastName}, welcome

14.

to Squeaky Beans, Inc.

15.

16.

Which three types of JSP code are used? (Choose three.)

A. Java code

B. template text

C. scripting code

D. standard action

E. expression language

Buy Now
Questions 6

Which three are valid URL mappings to a servlet in a web deployment descriptor? (Choose three.)

A. */*

B. *.do

C. MyServlet

D. /MyServlet

E. /MyServlet/*

F. MyServlet/*.jsp

Buy Now
Questions 7

Given:

11.

public class MyServlet extends HttpServlet {

12.

public void service(HttpServletRequest request,

13.

HttpServletResponse response)

14.

throws ServletException, IOException {

15.

// insert code here

16.

}

17.

}

and this element in the web application's deployment descriptor:

302 /html/error.html

Which, inserted at line 15, causes the container to redirect control to the error.html resource?

A. response.setError(302);

B. response.sendError(302);

C. response.setStatus(302);

D. response.sendRedirect(302);

E. response.sendErrorRedirect(302);

Buy Now
Questions 8

A JSP page contains a taglib directive whose uri attribute has the value dbtags. Which XML element within the web application deployment descriptor defines the associated TLD?

A. dbtags/WEB-INF/tlds/dbtags.tld

B. dbtags/WEB-INF/tlds/dbtags.tld

C. dbtags/WEB-INF/tlds/dbtags.tld

D. dbtags/WEB-INF/tlds/dbtags.tld

Buy Now
Questions 9

Which mechanism requires the client to provide its public key certificate?

A. HTTP Basic Authentication

B. Form Based Authentication

C. HTTP Digest Authentication

D. HTTPS Client Authentication

Buy Now
Questions 10

Which three are valid values for the body-content attribute of a tag directive in a tag file? (Choose three.)

A. EL

B. JSP

C. empty

D. dynamic

E. scriptless

F. tagdependent

Buy Now
Questions 11

For manageability purposes, you have been told to add a "count" instance variable to a critical JSP Document so that a JMX MBean can track how frequent this JSP is being invoked. Which JSP code snippet must you use to declare this instance variable in the JSP Document?

A. int count = 0;

B. <%! int count = 0; %>

C. int count = 0;

D. int count = 0;

Buy Now
Questions 12

Click the Exhibit button. Given:

11.

<% com.example.Advisor advisor = new com.example.Advisor(); %>

12.

<% request.setAttribute("foo", advisor); %>

Assuming there are no other "foo" attributes in the web application, which three are valid EL expressions for retrieving the advice property of advisor? (Choose three.)

A. ${foo.advice}

B. ${request.foo.advice}

C. ${requestScope.foo.advice}

D. ${requestScope[foo[advice]]}

E. ${requestScope["foo"]["advice"]}

F. ${requestScope["foo"["advice"]]}

Buy Now
Questions 13

Which two from the web application deployment descriptor are valid? (Choose two.)

A. */error.html

B. java.lang.Error/error.html

C. java.lang.Throwable/error.html

D. java.io.IOException/error.html

E. NullPointerException/error.html

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

PDF (Q&A)

$49.99

VCE

$55.99

PDF + VCE

$65.99