2017年11月29日 星期三

QUESTION 21

You need to create a JavaBean object that is used only within the current ISP page. It must NOT be accessible
to any other page including those that this page might import. Which JSP standard action < .in accomplish this
goal?


A. <jsp:useBean id = `pageBean' type = `com.example.MyBean' />
B. <jsp:useBean id = `pageBean' class = `com.example.MyBean' />
C. <jsp:makeBean id = `pageBean' type = `com.example.MyBean' />
D. <jsp:makeBean id = `pageBean' class = `com.example.MyBean' />
E. <jsp:useBean id = `pageBean' class = `com.example.MyBean' />
F. <jsp:makeBean id = `pageBean' class = `com.example.MyBean' />


Correct Answer: B

沒有留言:

張貼留言