Using Bean Scope Application : Bean Scope « JSP « Java
- Java
- JSP
- Bean Scope
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