exam questions

Exam 1z0-899 All Questions

View all questions & answers for the 1z0-899 exam

Exam 1z0-899 topic 1 question 19 discussion

Actual exam question from Oracle's 1z0-899
Question #: 19
Topic #: 1
[All 1z0-899 Questions]

Refer to the Exhibit.

A servlet sets a session-scoped attribute product with an instance of com.example.product an forward to a JSP. Which two output the name of the product in the response? (Choose two)

  • A. <%= product.getName() %>
  • B. <jsp:useBean id="product" class="com.example.Product" /> <%= product.getName() %>
  • C. <jsp:useBean id="com.example.Product" scope="page"> <%= product.getName() %> </jsp:useBean>
  • D. <jsp:useBean id="product" type="com.example.Product" scope="page" /> <%= product.getName() %>
  • E. <jsp:useBean id="product" type="com.example.Product"> <%= product.getName() %>
Show Suggested Answer Hide Answer
Suggested Answer: BC 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Currently there are no comments in this discussion, be the first to comment!
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...