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

    Which three are true about TLD files? (Choose three.)

    A. The web container recognizes TLD files placed in any subdirectory of WEB-INF.
    B. When deployed inside a JAR file, TLD files must be in the META-INF directory, or a subdirectory of it.
    C. A tag handler's attribute must be included in the TLD file only if the attribute can accept request- time expressions.
    D. The web container can generate an implicit TLD file for a tag library comprised of both simple tag handlers and tag files.
    E. The web container can automatically extend the tag library map described in a web.xml file by including entries extracted from the web application's TLD files.

  • Question 152:

    Click the Exhibit button.

    Assuming the tag library in the exhibit is imported with the prefix forum, which custom tag invocation produces a translation error in a JSP page?

    B. My message body.
    C. ${param.body}
    E. My message body.

  • Question 153:

    Servlet A receives a request that it forwards to servlet B within another web application in the same web container. Servlet A needs to share data with servlet B and that data must not be visible to other servlets in A's web application. In which object can the data that A shares with B be stored?

    A. HttpSession
    B. ServletConfig
    C. ServletContext
    D. HttpServletRequest
    E. HttpServletResponse

  • Question 154:

    You have built a web application that you license to small businesses. The webapp uses a context parameter, called licenseExtension, which enables certain advanced features based on your client's license package. When a client pays for a specific service, you provide them with a license extension key that they insert into the of the deployment descriptor. Not every client will have this context parameter so you need to create a context listener to set up a default value in the licenseExtension parameter. Which code snippet will accomplish this goal?

    A. You cannot do this because context parameters CANNOT be altered programmatically.
    B. String ext = context.getParameter('licenseExtension');if ( ext == null ) {context.setParameter ('licenseExtension', DEFAULT);}
    C. String ext = context.getAttribute('licenseExtension');if ( ext == null ) {context.setAttribute ('licenseExtension', DEFAULT);}
    D. String ext = context.getInitParameter('licenseExtension');if ( ext == null ) {context.resetInitParameter ('licenseExtension', DEFAULT);}
    E. String ext = context.getInitParameter('licenseExtension');if ( ext == null ) {context.setInitParameter ('licenseExtension', DEFAULT);}

  • Question 155:

    You need to store a floating point number, called Tsquare, in the session scope. Which two code snippets allow you to retrieve this value? (Choose two.)

    A. float Tsquare = session.getFloatAttribute("Tsquare");
    B. float Tsquare = (Float) session.getAttribute("Tsquare");
    C. float Tsquare = (float) session.getNumericAttribute("Tsquare");
    D. float Tsquare = ((Float) session.getAttribute.("Tsquare")).floatValue();
    E. float Tsquare = ((Float) session.getFloatAttribute.("Tsquare")).floatValue;
    F. float Tsquare = ((Float) session.getNumericAttribute.("Tsquare")).floatValue;

  • Question 156:

    In a JSP-centric shopping cart application, you need to move a client's home address of the Customer object into the shipping address of the Order object. The address data is stored in a value object class called Address with properties for: street address, city, province, country, and postal code. Which two JSP code snippets can be used to accomplish this goal? (Choose two.)

  • Question 157:

    Which basic authentication type is optional for a J2EE 1.4 compliant web container?

    A. HTTP Basic Authentication
    B. Form Based Authentication
    C. HTTP Digest Authentication
    D. HTTPS Client Authentication

  • Question 158:

    You have a use case in your web application that adds several session-scoped attributes. At the end of the use case, one of these objects, the manager attribute, is removed and then it needs to decide which of the other session-scoped attributes to remove.

    How can this goal be accomplished?

    A. The object of the manager attribute should implement the HttpSessionBindingListener and it should call the removeAttribute method on the appropriate session attributes.
    B. The object of the manager attribute should implement the HttpSessionListener and it should call the removeAttribute method on the appropriate session attributes.
    C. The object of the manager attribute should implement the HttpSessionBindingListener and it should call the deleteAttribute method on the appropriate session attributes.
    D. The object of the manager attribute should implement the HttpSessionListener and it should call the deleteAttribute method on the appropriate session attributes.

  • Question 159:

    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

  • Question 160:

    Assume the custom tag my:errorProne always throws a java.lang.RuntimeException with the message "File not found."

    An error page has been configured for this JSP page.

    Which option prevents the exception thrown by my:errorProne from invoking the error page mechanism, and outputs the message "File not found" in the response?

    A. ${ex.message}
    B. ${ex.message}
    C. ${ex.message}
    D. ${ex.message}
    E. ${ex.message}

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.