Which JSP standard action < .in accomplish this goal?

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?

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’ />



Leave a Reply 3

Your email address will not be published. Required fields are marked *


Tiparega

Tiparega

B and E are the same, and if they’re valid, also A should be valid.

CGK

CGK

A is wrong because type is used without class and so the bean must already exist. But it is said that “you need to create” it (so it will throw a java.lang.InstantiationException)