The scope attribute defaults to “page”

If you don’t specify a scope in either the <jsp:useBean> or <jsp:getProperty> tags, the Container uses the default of “page”.

This

<jsp:useBean id="person" class="foo.Employee" scope="page"/>

Is the same as this

<jsp:useBean id="person" class="foo.Employee"/>

Get Head First Servlets and JSP, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.