在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”/>
给定一个TheBean类,假设在JSP页面中还没有创建这个类的实例,以下哪个语句()可以创建这个bean的实例,并存储在请求域中。 A: <jsp:useBean name="myBean" type="com.TheBean"/> B: <jsp:takeBean name="myBean" type="com.TheBean"”/> C: <jsp:useBean id="myBean" type=" com.TheBean" scope="request"/> D: <jsp:takeBean id="myBean" type="com.TheBean" scope="request"/>
给定一个TheBean类,假设在JSP页面中还没有创建这个类的实例,以下哪个语句()可以创建这个bean的实例,并存储在请求域中。 A: <jsp:useBean name="myBean" type="com.TheBean"/> B: <jsp:takeBean name="myBean" type="com.TheBean"”/> C: <jsp:useBean id="myBean" type=" com.TheBean" scope="request"/> D: <jsp:takeBean id="myBean" type="com.TheBean" scope="request"/>
给定TheBean类,假设还没有创建TheBean类的实例,以下哪些JSP动作语句能创建这个bean的一个新实例,并把它存储在请求作用域( ) A: <jsp :useBean name="myBean" type="com.example.TheBean"/> B: <jsp :takeBean name="myBean" type="com.example.TheBean"/> C: <jsp :useBean id="myBean" class="com.example.TheBean" scope="request"/> D: <jsp :takeBean id="myBean" class="com.example.TheBean" scope="request"/>
给定TheBean类,假设还没有创建TheBean类的实例,以下哪些JSP动作语句能创建这个bean的一个新实例,并把它存储在请求作用域( ) A: <jsp :useBean name="myBean" type="com.example.TheBean"/> B: <jsp :takeBean name="myBean" type="com.example.TheBean"/> C: <jsp :useBean id="myBean" class="com.example.TheBean" scope="request"/> D: <jsp :takeBean id="myBean" class="com.example.TheBean" scope="request"/>
在JSP中想要使用JavaBean,其存放位置mypackage.mybean,哪项是写法正确的? A: <jsp:usebean id="mybean" name="mypackage.mybean"> B: <jsp:useBeanclass="mypackage.mybean.class"/> C: <jsp:usebean name="mybean" class=" mypackage.mybean"> D: <jsp:useBean id="mybean" class="mypackage.mybean"/>
在JSP中想要使用JavaBean,其存放位置mypackage.mybean,哪项是写法正确的? A: <jsp:usebean id="mybean" name="mypackage.mybean"> B: <jsp:useBeanclass="mypackage.mybean.class"/> C: <jsp:usebean name="mybean" class=" mypackage.mybean"> D: <jsp:useBean id="mybean" class="mypackage.mybean"/>
【单选题】对于以下标签[br][/br]它与下列哪个选项中的Java程序片段等价 A: %CounterBean myBean=(CounterBean)request.getAttribute(“myBean”);if(myBean==null)myBean = new CounterBean();% B: %CounterBean myBean=(CounterBean)request.getAttribute(“myBean”);if(myBean==null){myBean = new CounterBean();request.setAttribute(“CounterBean”,myBean);}% C: %CounterBean myBean=(CounterBean)request.getAttribute(“myBean”);if(myBean==null){myBean = new CounterBean();request.setAttribute(“myBean”,myBean);}% D: %CounterBean myBean=new CounterBean();request.setAttribute(“myBean”,myBean);%
【单选题】对于以下标签[br][/br]它与下列哪个选项中的Java程序片段等价 A: %CounterBean myBean=(CounterBean)request.getAttribute(“myBean”);if(myBean==null)myBean = new CounterBean();% B: %CounterBean myBean=(CounterBean)request.getAttribute(“myBean”);if(myBean==null){myBean = new CounterBean();request.setAttribute(“CounterBean”,myBean);}% C: %CounterBean myBean=(CounterBean)request.getAttribute(“myBean”);if(myBean==null){myBean = new CounterBean();request.setAttribute(“myBean”,myBean);}% D: %CounterBean myBean=new CounterBean();request.setAttribute(“myBean”,myBean);%
假设在Spring配置文件中有这样的配置信息<;bean id="foo" class="com.spring.Foo"/>;则要创建一个Spring Bean的正确用法是? A: MyBean myBean = (MyBean)factory.getBean("foo"); B: MyBean myBean = (MyBean)factory.getBean("com.spring.Foo"); C: MyBean myBean = (MyBean)factory.newBean("foo"); D: MyBean myBean = (MyBean)factory.newBean("com.spring.Foo");
假设在Spring配置文件中有这样的配置信息<;bean id="foo" class="com.spring.Foo"/>;则要创建一个Spring Bean的正确用法是? A: MyBean myBean = (MyBean)factory.getBean("foo"); B: MyBean myBean = (MyBean)factory.getBean("com.spring.Foo"); C: MyBean myBean = (MyBean)factory.newBean("foo"); D: MyBean myBean = (MyBean)factory.newBean("com.spring.Foo");
在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” />
在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”/>
在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”/>
在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” />
在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”/>;
在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”/>;