GiventheJSPcode:10.<html>11.<body>12.<jsp:useBeanid=’customer’class=’com.example.Customer’/>13.Hello,${customer.title}${customer.lastName},welcome14.toSqueakyBeans,Inc.15.</body>16.</html>WhichthreetypesofJSPcodeareused?()
A.Javacode
B.Templatetext
C.Scriptingcode
D.Standardaction
E.Expressionlanguage
第1题:
A.<jsp:useBeanid=’pageBean’type=’com.example.MyBean’/>
B.<jsp:useBeanid=’pageBean’class=’com.example.MyBean’/>
C.<jsp:makeBeanid=’pageBean’type=’com.example.MyBean’/>
D.<jsp:makeBeanid=’pageBean’class=’com.example.MyBean’/>
第2题:
【单选题】9、在项目中已经建立了一个JavaBean,其类为bean.Student,该Bean具有name属性,则下面标签用法正确的是()。
A.<jsp:useBean id="student" class="Student" scope="session"></jsp:useBean>
B.<jsp:useBean id="student" class="bean.Student" scope="session"> </jsp useBean>
C.<jsp:useBean id="student" class="Student" scope="session"/>
D.<jsp:getProperty name="name" property="student"/>
第3题:
在项目中已经建立了一个JavaBean,其类为bean.Student,该Bean具有name属性,则下面标签用法正确的是()。
A.<jsp:useBean id=”student” class=”Student” scope=”session”></jsp:useBean>
B.<jsp:useBean id=”student” class=”Student” scope=”session”/>
C.<jsp:useBean id=”student” class=”bean.student” scope=”session”></jsp:useBean>
D.<jsp:getProperty name=”name” property=”student”/>
第4题:
第5题:
【单选题】在JSP页面中,正确引入JavaBean的是()
A.<%jsp: useBean id =”myBean”scope =”page” class=”pkg.MyBean” %>
B.<jsp: useBean name=”myBean” scope =”page” class=”pkg.MyBean” >
C.<jsp: useBean id =”myBean”scope =”page” class=”pkg.MyBean” />
D.<jsp: useBean name=”myBean” scope =”page” class=”pkg.MyBean” />