Using Beans And Page Scope

 
 
This source code shows how to use Beans and Page Scope
 
 
  1. <HTML>

  2.     <HEAD>

  3.         <TITLE>Using Beans and Page Scope</TITLE>

  4.     </HEAD>

  5.  

  6.     <BODY>

  7.         <H1>Using Beans and Page Scope</H1>

  8.  

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

  10.  

  11.         <%

  12.         bean1.setCounter(bean1.getCounter()   1);

  13.         %>

  14.         The counter value is: <jsp:getProperty name="bean1" property="counter" />

  15.     </BODY>

  16. </HTML>
 
Copy to Clipboard      Download code as Text Format
 
  Date entered : 16th Jan 2007
  Rating : No Rating
  Accessed  :  1005
  Submitted by :  javabill
 
   Add Comment  Printer friendly
   View All Comments  Email to a friend
   Add to my Favourites Download PDF version
   Rating  
 
                 Click each image to add
this page to each site.
 
 
 
Comments Available

    No comment available at the moment.Be the first one to make a comment

 
Related JSP Source Codes
  • Spring
  • Wraps a string to a given number of characters using a string break character
  • Uppercase the first character of each word in a string
  • Make a string's first character uppercase
  • Strip whitespace (or other characters) from the beginning and end of a string

  • Copyright © 2013 VisualBuilder. All rights reserved