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

Java认证考试

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

Click the Exhibit button. A servlet sets a session-scoped attribute product with an instance of com.example.Product and forwards toa JSP. Which two output the name of the product in the response?()

  • A、${product.name}
  • B、<jsp:getProperty name="product" property="name" />
  • C、<jsp:useBean id="com.example.Product" /><%= product.getName() %>
  • D、<jsp:getProperty name="product" class="com.example.Product" property="name" />
正确答案:A,B
答案解析:
进入题库查看解析

微信扫一扫手机做题