Mega Code Archive

 
Categories / Java / JSP
 

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)