欢迎来到计算机考试题库网 计算机题库官网
logo
全部科目 > Java认证考试 > SCWCD(310-083)

多项选择题

Click the Exhibit button.

Given the JSP code:
1.<%
2.pageContext.setAttribute( "product",
3.new com.example.Product( "Pizza", 0.99 ) );
4.%>
5.<%-- insert code here --%>
Which two, inserted at line 5, output the name of the product in the response?()

    A.<%= product.getName()%>
    B.<jsp:useBean id="product" class="com.example.Product" /> <%= product.getName()%>
    C.<jsp:useBean id="com.example.Product" scope="page"> <%= product.getName()%></jspuseBean>
    D.<jsp:useBean id="product" type="com.example.Product" scope="page" /><%= product.getName()%>

点击查看答案
微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题