1Z0-858 Exam Details

  • Exam Code
    :1Z0-858
  • Exam Name
    :Java Enterprise Edition 5 Web Component Developer Certified Professional
  • Certification
    :Oracle Certifications
  • Vendor
    :Oracle
  • Total Questions
    :276 Q&As
  • Last Updated
    :Jul 12, 2026

Oracle 1Z0-858 Online Questions & Answers

  • Question 131:

    Place the appropriate element names on the left on the web application deployment descriptor on the right so that files ending in ".mpg" are associated with the MIME type "video/mpeg."

    Select and Place:

  • Question 132:

    Which retrieves all cookies sent in a given HttpServletRequest request?

    A. request.getCookies()
    B. request.getAttributes()
    C. request.getSession().getCookies()
    D. request.getSession().getAttributes()

  • Question 133:

    Which JSP standard action can be used to import content from a resource called foo.jsp?

    E. foo.jsp
    F. foo.jsp

  • Question 134:

    You have created a web application that you license to real estate brokers. The webapp is highly customizable including the email address of the broker, which is placed on the footer of each page. This is configured as a context parameter in the deployment descriptor:

    10.

    11.

    footerEmail

    12.

    [email protected]

    13.

    Which EL code snippet will insert this context parameter into the footer?

    A. Contact me
    B. Contact me
    C. Contact me
    D. Contact me
    E. Contact me

  • Question 135:

    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:

  • Question 136:

    You are creating a servlet that generates stock market graphs. You want to provide the web browser with precise information about the amount of data being sent in the response stream. Which two HttpServletResponse methods will you use to provide this information? (Choose two.)

    A. response.setLength(numberOfBytes);
    B. response.setContentLength(numberOfBytes);
    C. response.setHeader("Length", numberOfBytes);
    D. response.setIntHeader("Length", numberOfBytes);
    E. response.setHeader("Content-Length", numberOfBytes);
    F. response.setIntHeader("Content-Length", numberOfBytes);

  • Question 137:

    Which two are characteristics of the Intercepting Filter pattern? (Choose two.)

    A. It provides centralized request handling for incoming requests.
    B. It forces resource authentication to be distributed across web components.
    C. It reduces coupling between presentation-tier clients and underlying business services.
    D. It can be added and removed unobtrusively, without requiring changes to existing code.
    E. It allows preprocessing and postprocessing on the incoming requests and outgoing responses.

  • Question 138:

    Given an HttpSession session, a ServletRequest request, and a ServletContext context, which retrieves a URL 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")

  • Question 139:

    A web application contains a tag file called beta.tag in /WEB-INF/tags/alpha. A JSP page called sort.jsp exists in the web application and contains only this JSP code:

    1.

    <%@ taglib prefix="x"

    2.

    tagdir="/WEB-INF/tags/alpha" %>

    3.

    The sort.jsp page is requested.

    Which two are true? (Choose two.)

    A. Tag files can only be accessed using a tagdir attribute.
    B. The sort.jsp page translates successfully and invokes the tag defined by beta.tag.
    C. The sort.jsp page produces a translation error because a taglib directive must always have a uri attribute.
    D. Tag files can only be placed in /WEB-INF/tags, and NOT in any subdirectories of /WEB-INF/tags.
    E. The tagdir attribute in line 2 can be replaced by a uri attribute if a TLD referring to beta.tag is created and added to the web application.
    F. The sort.jsp page produces a translation error because the tagdir attribute on lines 1-2 specifies a directory other than /WEB-INF/tags, which is illegal.

  • Question 140:

    Which two prevent a servlet from handling requests? (Choose two.)

    A. The servlet's init method returns a non-zero status.
    B. The servlet's init method throws a ServletException.
    C. The servlet's init method sets the ServletResponse's content length to 0.
    D. The servlet's init method sets the ServletResponse's content type to null.
    E. The servlet's init method does NOT return within a time period defined by the servlet container.

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Oracle exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 1Z0-858 exam preparations and Oracle certification application, do not hesitate to visit our Vcedump.com to find your solutions here.