Using Bean Scope Page : Bean Scope « JSP « Java

Using Bean Scope Page

<%@ page errorPage="errorpage.jsp" %>

<jsp:useBean id="counter" scope="page" class="beans.Counter" />

    <title>Page Bean Example</title>
    <H3>Page Bean Example</H3>
    <center><b>The current count for the counter bean is: </b>
      <%=counter.getCount() %></center>

       89 k)

Related examples in the same category

1.Using Bean Scope Request
2.Using Bean Scope Application
3.Using Beans and Session Scope
4.Using Beans and Page Scope