Which two code snippets can be used to accomplish this goal?

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?

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?

A.
<c:set var=’order’ property=’shipAddress’
value=’${client.homeAddress}’ />

B.
<c:set target=’${order}’ property=’shipAddress’
value=’${client.homeAddress}’ />

C.
<jsp:setProperty name=’${order}’ property=’shipAddress’
value=’${client.homeAddress}’ />

D.
<c:set var=’order’ property=’shipAddress’>
<jsp:getProperty name=’client’ property=’homeAddress’ />
</c:store>

E.
<c:set target=’${order}’ property=’shipAddress’>
<jsp:getProperty name=’client’ property=’homeAddress’ />
</c:set>

F.
<c:setProperty name=’${order}’ property=’shipAddress’>
<jsp:getProperty name=’client’ property=’homeAddress’ />
</c:setProperty>



Leave a Reply 2

Your email address will not be published. Required fields are marked *


giuseppe

giuseppe

Remember: <jsp:getproperty… can't get the property of a property but can access to the external object so E is correct also