nerdexam
Oracle

1Z0-899 · Question #17

In a jsp-centric shopping cart application cart application to move a client's home address of Customer object into the shipping address of the order object. The address data is stored in a value…

The correct answer is B. <c:set target='${order}' property='shipAddress' E. <c:set target='${order}' property='shipAddress'>. See the full explanation below for the reasoning.

Question

In a jsp-centric shopping cart application cart application to move a client's home address of 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 code snippets can be used to accomplish this goal?

Options

  • A<c:set var='order' property='shipAddress'
  • B<c:set target='${order}' property='shipAddress'
  • C<jsp:setProperty name='${order}' property='shipAddress'
  • D<c:set var='order' property='shipAddress'>
  • E<c:set target='${order}' property='shipAddress'>
  • F<c:setProperty name='${order}' property='shipAddress'>

How the community answered

(63 responses)
  • A
    6% (4)
  • B
    76% (48)
  • C
    13% (8)
  • D
    2% (1)
  • F
    3% (2)

Community Discussion

No community discussion yet for this question.

Full 1Z0-899 Practice