Jsp Using Bean Scope Session : Session « JSP « Java






Jsp Using Bean Scope Session

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

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

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


           
       








JspUsingBeanScopeSession.zip( 90 k)

Related examples in the same category

1.JSP: display a session info
2.JSP Session Parameter Rewrite
3.JSP New Session Parameter
4.Jsp Session Cart
5.Use Session Jsp
6.Print the request headers and the session attributes
7.Using Sessions to Track Users
8.Sessions disabled
9.Duplicated session varaibles
10.JSP: view session
11.JSP and session
12.JSP and session 2
13.JSP session counter