<HTML> <HEAD> <TITLE>Using Beans and Page Scope</TITLE> </HEAD> <BODY> <H1>Using Beans and Page Scope</H1> <jsp:useBean id="bean1" class="beans.Counter" scope="page" /> <% bean1.setCounter(bean1.getCounter() + 1); %> The counter value is: <jsp:getProperty name="bean1" property="counter" /> </BODY> </HTML>