StringBean.jsp Page that manipulates the StringBean bean with both jsp:useBean (i.e., XML-style) syntax package cwp; /** Simple bean to illustrate sharing beans through * use of the scope attribute of jsp:useBean. * <P> * Taken from Core Web Programming Java 2 Edition * from Prentice Hall and Sun Microsystems Press, * . * May be freely used or adapted. */ public class AccessCountBean { private String firstPage; private int accessCount = 1; public String getFirstPage() { return(firstPage); } public void setFirstPage(String firstPage) { this.firstPage = firstPage; } public int getAccessCount() { return(accessCount++); } }
StringBean.jsp Page that manipulates the StringBean bean with both jsp:useBean (i.e., XML-style) syntax
Permanent link to this article: http://bangla.sitestree.com/stringbean-jsp-page-that-manipulates-the-stringbean-bean-with-both-jspusebean-i-e-xml-style-syntax/