A: <%jsp: useBean id =”myBean” scope =”page” class=”pkg.MyBean” %>
B:
C:
D:
举一反三
- 在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的是()。 未知类型:{'options': ['[%jsp: useBean id ="myBean” scope ="page” class="pkg.MyBean" %]', '[jsp: useBean name ="myBean” scope ="page” class="pkg.MyBean"]', '[jsp: useBean id ="myBean” scope ="page” class="pkg.MyBean”/]', '[jsp: useBean name ="myBean” scope ="page” class="pkg.MyBean”/]'], 'type': 102}
- 在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: C: D:
- 在J2EE中,如果a是b的父类,b是c的父类,c是d的父类,它们都在包mypackage中。则以下正确的是() A: <jsp:userbean id=”mybean” scope=”page” class=”mypackage.d” type=”b”> B: <jsp:userbean id=”mybean” scope=”page” class=”mypackage.d” type=”object”/> C: <jsp:userbean id=”mybean” scope=”page” class=”mypackage.d” type=”mypackage.a”/> D: <jsp:userbean id=”mybean” scope=”page” class=”mypackage.d” type=”a/”>
内容
- 0
如果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"/>
- 1
给定TheBean类,假设还没有创建TheBean类的实例,以下哪些JSP动作语句能创建这个bean的一个新实例,并把它存储在请求作用域() A: <jsp :useBean name=\"myBean\" type=\"com.example.TheBean\"/> \n B: <jsp :takeBean name=\"myBean\" type=\"com.example.TheBean\"/> \n C: <jsp :useBean id=\"myBean\" class=\"com.example.TheBean\" scope=\"request\"/> \n D: <jsp :takeBean id=\"myBean\" class=\"com.example.TheBean\" scope=\"request\"/>
- 2
在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”/>
- 3
在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”/>;
- 4
给定一个TheBean类,假设在JSP页面中还没有创建这个类的实例,以下哪个语句()可以创建这个bean的实例,并存储在请求域中。 未知类型:{'options': ['[jsp:useBean name="myBean" type="com.TheBean"/]', '[jsp:takeBean name="myBean" type="com.TheBean"”/]', '[jsp:useBean id="myBean" type=" com.TheBean" scope="request"/]', '[jsp:takeBean id="myBean" type="com.TheBean" scope="request"/]'], 'type': 102}