多做题,通过考试没问题!

Java认证考试

睦霖题库>其他计算机考试>Java认证考试

In a JSP-centric shopping cart application, you need to move a client’s home address of the Customerobject into the shipping address of the Order object. The address data is stored in a value object classcalled Address with properties for: street address, city, province, country, and postal code. Which two JSPcode 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>
正确答案:B,E
答案解析:
进入题库查看解析

微信扫一扫手机做题