Oracle
1Z0-899 · Question #49
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…
The correct answer is B. <jsp:useBean id = `pageBean' class = `com.example.MyBean' />. See the full explanation below for the reasoning.
Question
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?
Options
- 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'
How the community answered
(40 responses)- A3% (1)
- B80% (32)
- C3% (1)
- D10% (4)
- F5% (2)
Community Discussion
No community discussion yet for this question.