<jsp:useBean id=’pageBean’ type=’com.example.MyBean’ />
<jsp:useBean id=’pageBean’ class=’com.example.MyBean’ />
<jsp:makeBean id=’pageBean’ type=’com.example.MyBean’ />
<jsp:makeBean id=’pageBean’ class=’com.example.MyBean’ />
第1题:
JSP中JavaBean是通过指令标签()来访问的。
第2题:
A JSP page needs to instantiate a JavaBean to be used by only that page. Which two jsp:useBean attributes must be used to access this attribute in the JSP page?()
第3题:
在J2EE中,在JSP中想要使用JavaBean:mypackage.mybean,则一下写法正确的是()
第4题:
You need to create a JavaBean object that is used only within the current JSP page. It must NOT beaccessible to any other page including those that this page might import. Which JSP standard action canaccomplish this goal?()
第5题:
Which JSP standard action can be used to import content from a resource called foo.jsp?()
第6题:
在J2EE中,在JSP中想要使用JavaBean:mypackage.mybean,则以下写法正确的是()。
第7题:
In a JSP-centric web application, you need to create a catalog browsing JSP page. The catalog is stored asa List object in the catalog attribute of the webapp’s ServletContext object. Which scriptlet code snippetgives you access to the catalog object?()
第8题:
在JSP页面中,正确引入JavaBean的是()
第9题:
You are creating a new JSP page and you need to execute some code that acts when the page is firstexecuted, but only once. Which three are possible mechanisms for performing this initialization code?()
第10题:
You have built your own light-weight templating mechanism. Your servlets, which handle each request,dispatch the request to one of a small set of template JSP pages. Each template JSP controls the layout ofthe view by inserting the header, body, and footer elements into specific locations within the template page.The URLs for these three elements are stored in request scoped variables called, headerURL, bodyURL,and footerURL, respectively. These attribute names are never used for other purposes. Which JSP codesnippet should be used in the template JSP to insert the JSP content for the body of the page?()