其他

InaJSP-centricshoppingcartapplication,youneedtomoveaclient’shomeaddressoftheCustomerobjectintotheshippingaddressoftheOrderobject.TheaddressdataisstoredinavalueobjectclasscalledAddresswithpropertiesfor:streetaddress,city,province,country,andpostalcode.Whic

题目

InaJSP-centricshoppingcartapplication,youneedtomoveaclient’shomeaddressoftheCustomerobjectintotheshippingaddressoftheOrderobject.TheaddressdataisstoredinavalueobjectclasscalledAddresswithpropertiesfor:streetaddress,city,province,country,andpostalcode.WhichtwoJSPcodesnippetscanbeusedtoaccomplishthisgoal?()

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

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

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

D.<c:setvar=’order’property=’shipAddress’><jsp:getPropertyname=’client’property=’homeAddress’/></c:store>

E.<c:settarget=’${order}’property=’shipAddress’><jsp:getPropertyname=’client’property=’homeAddress’/></c:set>