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 221:

    A custom tag is defined to take three attributes. Which two correctly invoke the tag within a JSP page? (Choose two.)

    G. foobarbaz

  • Question 222:

    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;
    C. int count = 0;
    D. int count = 0;

  • Question 223:

    You have built a web application with tight security. Several directories of your webapp are used for internal purposes and you have overridden the default servlet to send an HTTP 403 status code for any request that maps to one of these directories. During testing, the Quality Assurance director decided that they did NOT like seeing the bare response page generated by Firefox and Internet Explorer. The director recommended that the webapp should return a more user-friendly web page that has the same look-and- feel as the webapp plus links to the webapp's search engine. You have created this JSP page in the / WEB-INF/jsps/error403.jsp file. You do NOT want to alter the complex logic of the default servlet. How can you declare that the web container must send this JSP page whenever a 403 status is generated?

    A. 403/WEB-INF/jsps/error403.jsp
    B. 403/WEB-INF/jsps/error403.jsp
    C. 403/WEB- INF/jsps/error403.jsp
    D. 403/WEB- INF/jsps/error403.jsp

  • Question 224:

    A developer for the company web site has been told that users may turn off cookie support in their browsers. What must the developer do to ensure that these customers can still use the web application?

    A. The developer must ensure that every URL is properly encoded using the appropriate URL rewriting APIs.
    B. The developer must provide an alternate mechanism for managing sessions and abandon the HttpSession mechanism entirely.
    C. The developer can ignore this issue. Web containers are required to support automatic URL rewriting when cookies are not supported.
    D. The developer must add the string id= to the end of every URL to ensure that the conversation with the browser can continue.

  • Question 225:

    The JSP developer wants a comment to be visible in the final output to the browser. Which comment style needs to be used in a JSP page?

  • Question 226:

    A JSP page needs to set the property of a given JavaBean to a value that is calculated with the JSP page. Which three jsp:setProperty attributes must be used to perform this initialization? (Choose three.)

    A. id
    B. val
    C. name
    D. param
    E. value
    F. property
    G. attribute

  • Question 227:

    Click the Exhibit button.

    As a maintenance feature, you have created this servlet to allow you to upload and remove files on your web server. Unfortunately, while testing this servlet, you try to upload a file using an HTTP request and on this servlet, the web container

    returns a 404 status.

    What is wrong with this servlet?

    A. HTTP does NOT support file upload operations.
    B. The servlet constructor must NOT have any parameters.
    C. The servlet needs a service method to dispatch the requests to the helper methods.
    D. The doPut and doDelete methods do NOT map to the proper HTTP methods.

  • Question 228:

    Given:

    11.

    12.

    catalog

    13.

    /catalogTemplate.jsp

    14.

    10

    15.

    Which two are true? (Choose two.)

    A. Line 13 is not valid for a servlet declaration.
    B. Line 14 is not valid for a servlet declaration.
    C. One instance of the servlet will be loaded at startup.
    D. Ten instances of the servlet will be loaded at startup.
    E. The servlet will be referenced by the name catalog in mappings.

  • Question 229:

    Given:

    6.

    <% int[] nums = {42, 420, 4200};

    7.

    request.setAttribute("foo", nums); %>

    Which two successfully translate and result in a value of true? (Choose two.)

    A. ${true or false}
    B. ${requestScope[foo][0] > 500}
    C. ${requestScope['foo'][1] = 420}
    D. ${(requestScope['foo'][0] lt 50) andand (3 gt 2)}

  • Question 230:

    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

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.