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 also, if B works, A should work too… Very bad question

azzmi

azzmi

B and E right,
but A is wrong, cause “type” does not create new bean..it only return already exist bean