Using Bean Scope Application : Bean Scope « JSP « Java






Using Bean Scope Application

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

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

<html>
  <body>
    <center><b>The current count for the counter bean is: </b>
      <%=counter.getCount() %></center>
  </body>
</html>


           
       








UsingBeanScopeApplication.zip( 89 k)

Related examples in the same category

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