單項(xiàng)選擇題下面哪項(xiàng)不是useBean動(dòng)作可能的屬性值()。 

A.contentType
B.id
C.scope
D.class


您可能感興趣的試卷

你可能感興趣的試題

1.單項(xiàng)選擇題以下可用于獲取session對(duì)象的屬性u(píng)serid的值是()  

A.  session. getAttribute(“userid”);
B.  session. setAttribute(“userid”);
C.  request. getParameter(userid);
D.  session. getAttribute(userid);

2.單項(xiàng)選擇題按作用域從大到小排列正確的是 ()

A.  application page request  response
B.  session page request  application
C.  public  application session request
D.  application session  request  page

3.單項(xiàng)選擇題在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” />

4.單項(xiàng)選擇題下面哪個(gè)方法可使session無效() 

A.session.setAttribute()
B.session.getAttribute()
C.session.invalidate()
D.session.removeAttribute()

5.單項(xiàng)選擇題假設(shè)在helloapp應(yīng)用中有一個(gè)Javabean文件HelloServlet,它位于org.javathinker包下,那么這個(gè)bean的class文件應(yīng)該放在什么目錄下? ()

A.helloapp/HelloServlet.class
B.helloapp/WEB-INF/HelloServlet.class
C.helloapp/WEB-INF/classes/HelloServlet.class
D.helloapp/WEB-INF/classes/org/javathinker/HelloServlet.class