InaJSP-centricshoppingcartapplication,youneedtomoveaclient’shomeaddressoftheCustomerobject

题目内容(请给出正确答案)

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>

参考答案和解析
参考答案:B, E
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。