在JSP中想要使用JavaBean:mypackage.mybean,则以下写法正确的是()(选择一项)
A: <;jsp:usebeanid=”mybean”scope=”pageContext”class=”mypackage.mybean”/>;
B: <;jsp:useBeanclass=”mypackage.mybean.class”/>;
C: <;jsp:usebeanid=”mybean”class=”mypackage.mybean.java”>;
D: <;jsp:useBeanid=”mybean”class=”mypackage.mybean”/>;
A: <;jsp:usebeanid=”mybean”scope=”pageContext”class=”mypackage.mybean”/>;
B: <;jsp:useBeanclass=”mypackage.mybean.class”/>;
C: <;jsp:usebeanid=”mybean”class=”mypackage.mybean.java”>;
D: <;jsp:useBeanid=”mybean”class=”mypackage.mybean”/>;
举一反三
- 在JSP中想要使用JavaBean:mypackage.mybean,则以下写法正确的是() A: ”mybean”scope=”pageContext”class=”mypackage.mybean”/> B: <jsp:useBeanclass=”mypackage.mybean.class”/> C: ”mybean”class=”mypackage.mybean.java”> D: ”mybean”class=”mypackage.mybean”/>
- 在J2EE中,在JSP中想要使用JavaBean:mypackage.mybean,则以下写法正确的是()。 未知类型:{'options': ['[jsp:usebeanid=”mybean”scop=”page”class=”mypackage.mybean”/]', '[jsp:useBeanclass=”mypackage.mybean.class”/]', '[jsp:usebeanid=”mybean”class=”mypackage.mybean”/]', '[jsp:useBeanid=”mybean”class=”mypackage.mybean”/]'], 'type': 102}
- 如果a是b的父类,b是c的父类,c是d的父类,他们都在包中。则以下正确的是_____。 A: <jsp:usebeanid="mybean"scope="page"class="mypackage.d"type="b"> B: <jsp:usebeanid="mybean"scope="page"class="mypackage.d"type="c"/> C: <jsp:usebeanid="mybean"scope="page"class="mypackage.d"type="mypackage.a"/> D: <jsp:usebeanid="mybean"scope="page"class="mypackage.d"type="a"/>
- 在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” />
- 在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” />