Multiple choice technology

Correct syntax of useBean Action

  1. .<jsp:useBean id=" " class=" "> </jsp:useBean>

  2. <jsp:useBean id=" " property= =" "> </jsp:useBean>

  3. <jsp:useBean name=="newBean" class=" "> </jsp:useBean>

  4. <jsp:useBean beanName =" " class=" "> </jsp:useBean>

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

Option A shows the correct basic syntax for jsp:useBean with the id and class attributes properly specified. Option B incorrectly uses 'property' instead of 'class' and has an equals sign typo. Option C incorrectly uses 'name' instead of 'id'. Option D incorrectly uses 'beanName' without the proper context and omits the required id attribute.