Multiple choice technology web technology

A JSP page needs to instantiate a JavaBean to be used by only that page. Which two jsp:useBean attributes must be used to access this attribute in the JSP page?

  1. id

  2. type

  3. name

  4. class

Reveal answer Fill a bubble to check yourself
A,D Correct answer
Explanation

To instantiate a JavaBean with jsp:useBean, you must specify 'id' (the variable name to reference the bean) and 'class' (the fully qualified class name to instantiate). The 'type' attribute is optional (for casting), and 'name' is not a standard attribute.