{"id":27088,"date":"2021-05-10T23:10:08","date_gmt":"2021-05-11T03:10:08","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/recent-posts\/sharedcounts1-jsp-sharedcounts2-jsp-and-sharedcounts3-jsp-three-pages-that-all-use-the-accesscountbean-results-you-get-depend-on-which-page-is-hit-first-and-how-many-total-hits-the-combined-pages-r-2\/"},"modified":"2021-05-10T23:10:08","modified_gmt":"2021-05-11T03:10:08","slug":"sharedcounts1-jsp-sharedcounts2-jsp-and-sharedcounts3-jsp-three-pages-that-all-use-the-accesscountbean-results-you-get-depend-on-which-page-is-hit-first-and-how-many-total-hits-the-combined-pages-r-2","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=27088","title":{"rendered":"SharedCounts1.jsp, SharedCounts2.jsp, and SharedCounts3.jsp Three pages that all use the AccessCountBean. Results you get depend on which page is hit first and how many total hits the combined pages receive. #Programming Code Examples #Java\/J2EE\/J2ME #Applets and Basic Graphics"},"content":{"rendered":"<pre>\nSharedCounts1.jsp, SharedCounts2.jsp, and SharedCounts3.jsp Three pages that all use the AccessCountBean. Results you get depend on which page is hit first and how many total hits the combined pages receive.\n\n&lt;!DOCTYPE HTML PUBLIC &quot;-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN&quot;&gt;\n&lt;!-- \nExample of sharing beans. \n\nTaken from Core Web Programming Java 2 Edition\nfrom Prentice Hall and Sun Microsystems Press,\n.\nMay be freely used or adapted.\n--&gt;\n&lt;HTML&gt;\n&lt;HEAD&gt;\n&lt;TITLE&gt;Shared Access Counts: Page 1&lt;\/TITLE&gt;\n&lt;LINK REL=STYLESHEET\n      HREF=&quot;JSP-Styles.css&quot;\n      TYPE=&quot;text\/css&quot;&gt;\n&lt;\/HEAD&gt;\n\n&lt;BODY&gt;\n\n&lt;TABLE BORDER=5 ALIGN=&quot;CENTER&quot;&gt;\n  &lt;TR&gt;&lt;TH CLASS=&quot;TITLE&quot;&gt;\n      Shared Access Counts: Page 1&lt;\/TABLE&gt;\n&lt;P&gt;\n&lt;jsp:useBean id=&quot;counter&quot; \n             class=&quot;cwp.AccessCountBean&quot;\n             scope=&quot;application&quot;&gt;\n  &lt;jsp:setProperty name=&quot;counter&quot; \n                   property=&quot;firstPage&quot;\n                   value=&quot;SharedCounts1.jsp&quot; \/&gt;\n&lt;\/jsp:useBean&gt;\n\nOf SharedCounts1.jsp (this page), \n&lt;A HREF=&quot;SharedCounts2.jsp&quot;&gt;SharedCounts2.jsp&lt;\/A&gt;, and\n&lt;A HREF=&quot;SharedCounts3.jsp&quot;&gt;SharedCounts3.jsp&lt;\/A&gt;, \n&lt;jsp:getProperty name=&quot;counter&quot; property=&quot;firstPage&quot; \/&gt;\nwas the first page accessed.\n&lt;P&gt;\nCollectively, the three pages have been accessed \n&lt;jsp:getProperty name=&quot;counter&quot; property=&quot;accessCount&quot; \/&gt;\ntimes.\n             \n&lt;\/BODY&gt;\n&lt;\/HTML&gt;\n\n&lt;!DOCTYPE HTML PUBLIC &quot;-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN&quot;&gt;\n&lt;!-- \nExample of sharing beans. \n   \nTaken from Core Web Programming Java 2 Edition\nfrom Prentice Hall and Sun Microsystems Press,\n.\nMay be freely used or adapted.\n--&gt;\n&lt;HTML&gt;\n&lt;HEAD&gt;\n&lt;TITLE&gt;Shared Access Counts: Page 2&lt;\/TITLE&gt;\n&lt;LINK REL=STYLESHEET\n      HREF=&quot;JSP-Styles.css&quot;\n      TYPE=&quot;text\/css&quot;&gt;\n&lt;\/HEAD&gt;\n\n&lt;BODY&gt;\n&lt;TABLE BORDER=5 ALIGN=&quot;CENTER&quot;&gt;\n  &lt;TR&gt;&lt;TH CLASS=&quot;TITLE&quot;&gt;\n      Shared Access Counts: Page 2&lt;\/TABLE&gt;\n&lt;P&gt;\n&lt;jsp:useBean id=&quot;counter&quot; \n             class=&quot;cwp.AccessCountBean&quot;\n             scope=&quot;application&quot;&gt;\n  &lt;jsp:setProperty name=&quot;counter&quot; \n                   property=&quot;firstPage&quot;\n                   value=&quot;SharedCounts2.jsp&quot; \/&gt;\n&lt;\/jsp:useBean&gt;\nOf SharedCounts2.jsp (this page), \n&lt;A HREF=&quot;SharedCounts1.jsp&quot;&gt;SharedCounts1.jsp&lt;\/A&gt;, and\n&lt;A HREF=&quot;SharedCounts3.jsp&quot;&gt;SharedCounts3.jsp&lt;\/A&gt;, \n&lt;jsp:getProperty name=&quot;counter&quot; property=&quot;firstPage&quot; \/&gt;\nwas the first page accessed.\n&lt;P&gt;\nCollectively, the three pages have been accessed \n&lt;jsp:getProperty name=&quot;counter&quot; property=&quot;accessCount&quot; \/&gt;\ntimes.      \n&lt;\/BODY&gt;\n&lt;\/HTML&gt;\n\n&lt;!DOCTYPE HTML PUBLIC &quot;-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN&quot;&gt;\n&lt;!-- \nExample of sharing beans. \n\nTaken from Core Web Programming Java 2 Edition\nfrom Prentice Hall and Sun Microsystems Press,\n.\nMay be freely used or adapted.\n--&gt;\n&lt;HTML&gt;\n&lt;HEAD&gt;\n&lt;TITLE&gt;Shared Access Counts: Page 3&lt;\/TITLE&gt;\n&lt;LINK REL=STYLESHEET\n      HREF=&quot;JSP-Styles.css&quot;\n      TYPE=&quot;text\/css&quot;&gt;\n&lt;\/HEAD&gt;\n\n&lt;BODY&gt;\n&lt;TABLE BORDER=5 ALIGN=&quot;CENTER&quot;&gt;\n  &lt;TR&gt;&lt;TH CLASS=&quot;TITLE&quot;&gt;\n      Shared Access Counts: Page 3&lt;\/TABLE&gt;\n&lt;P&gt;\n&lt;jsp:useBean id=&quot;counter&quot; \n             class=&quot;cwp.AccessCountBean&quot;\n             scope=&quot;application&quot;&gt;\n  &lt;jsp:setProperty name=&quot;counter&quot; \n                   property=&quot;firstPage&quot;\n                   value=&quot;SharedCounts3.jsp&quot; \/&gt;\n&lt;\/jsp:useBean&gt;\nOf SharedCounts3.jsp (this page), \n&lt;A HREF=&quot;SharedCounts1.jsp&quot;&gt;SharedCounts1.jsp&lt;\/A&gt;, and\n&lt;A HREF=&quot;SharedCounts2.jsp&quot;&gt;SharedCounts2.jsp&lt;\/A&gt;, \n&lt;jsp:getProperty name=&quot;counter&quot; property=&quot;firstPage&quot; \/&gt;\nwas the first page accessed.\n&lt;P&gt;\nCollectively, the three pages have been accessed \n&lt;jsp:getProperty name=&quot;counter&quot; property=&quot;accessCount&quot; \/&gt;\ntimes.         \n&lt;\/BODY&gt;\n&lt;\/HTML&gt;\n\n\n<\/pre>\n<p>Note: Brought from our old site: http:\/\/www.salearningschool.com\/example_codes\/ on Jan 2nd, 2017 From: http:\/\/sitestree.com\/?p=10271<br \/> Categories:Programming Code Examples, Java\/J2EE\/J2ME, Applets and Basic Graphics<br \/>Tags:Java\/J2EE\/J2MEApplets and Basic Graphics<br \/> Post Data:2017-01-02 16:04:28<\/p>\n<p>\t\tShop Online: <a href='https:\/\/www.ShopForSoul.com\/' target='new' rel=\"noopener\">https:\/\/www.ShopForSoul.com\/<\/a><br \/>\n\t\t(Big Data, Cloud, Security, Machine Learning): Courses: <a href='http:\/\/Training.SitesTree.com' target='new' rel=\"noopener\"> http:\/\/Training.SitesTree.com<\/a><br \/>\n\t\tIn Bengali: <a href='http:\/\/Bangla.SaLearningSchool.com' target='new' rel=\"noopener\">http:\/\/Bangla.SaLearningSchool.com<\/a><br \/>\n\t\t<a href='http:\/\/SitesTree.com' target='new' rel=\"noopener\">http:\/\/SitesTree.com<\/a><br \/>\n\t\t8112223 Canada Inc.\/JustEtc: <a href='http:\/\/JustEtc.net' target='new' rel=\"noopener\">http:\/\/JustEtc.net (Software\/Web\/Mobile\/Big-Data\/Machine Learning) <\/a><br \/>\n\t\tShop Online: <a href='https:\/\/www.ShopForSoul.com'> https:\/\/www.ShopForSoul.com\/<\/a><br \/>\n\t\tMedium: <a href='https:\/\/medium.com\/@SayedAhmedCanada' target='new' rel=\"noopener\"> https:\/\/medium.com\/@SayedAhmedCanada <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>SharedCounts1.jsp, SharedCounts2.jsp, and SharedCounts3.jsp Three pages that all use the AccessCountBean. Results you get depend on which page is hit first and how many total hits the combined pages receive. &lt;!DOCTYPE HTML PUBLIC &quot;-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN&quot;&gt; &lt;!&#8211; Example of sharing beans. Taken from Core Web Programming Java 2 Edition from Prentice Hall and Sun &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=27088\">Continue reading<\/a><\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1917],"tags":[],"class_list":["post-27088","post","type-post","status-publish","format-standard","hentry","category-fromsitestree-com","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":10440,"url":"http:\/\/bangla.sitestree.com\/?p=10440","url_meta":{"origin":27088,"position":0},"title":"SharedCounts1.jsp, SharedCounts2.jsp, and SharedCounts3.jsp Three pages that all use the AccessCountBean. Results you get depend on which page is hit first and how many total hits the combined pages receive.","author":"","date":"August 28, 2015","format":false,"excerpt":"<!DOCTYPE HTML PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\"> <!-- Example of sharing beans. Taken from Core Web Programming Java 2 Edition from Prentice Hall and Sun Microsystems Press, . May be freely used or adapted. --> <HTML> <HEAD> <TITLE>Shared Access Counts: Page 1<\/TITLE> <LINK REL=STYLESHEET \u00a0\u00a0\u00a0\u00a0\u00a0 HREF=\"JSP-Styles.css\" \u00a0\u00a0\u00a0\u00a0\u00a0 TYPE=\"text\/css\"> <\/HEAD> <BODY>\u2026","rel":"","context":"In &quot;Code . Programming Samples . \u09aa\u09cd\u09b0\u09cb\u0997\u09cd\u09b0\u09be\u09ae \u0989\u09a6\u09be\u09b9\u09b0\u09a8&quot;","block_context":{"text":"Code . Programming Samples . \u09aa\u09cd\u09b0\u09cb\u0997\u09cd\u09b0\u09be\u09ae \u0989\u09a6\u09be\u09b9\u09b0\u09a8","link":"http:\/\/bangla.sitestree.com\/?cat=1417"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":10140,"url":"http:\/\/bangla.sitestree.com\/?p=10140","url_meta":{"origin":27088,"position":1},"title":"AccessCounts.jsp Page that demonstrates JSP declarations.","author":"","date":"August 7, 2015","format":false,"excerpt":"AccessCounts.jsp\u00a0 Page that demonstrates JSP declarations. <!DOCTYPE HTML PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\"> <!--\u00a0 \u00a0 Taken from Core Web Programming Java 2 Edition from Prentice Hall and Sun Microsystems Press, . May be freely used or adapted. --> <HTML> <HEAD> <TITLE>JSP Declarations<\/TITLE> <META NAME=\"keywords\" \u00a0\u00a0\u00a0\u00a0\u00a0 CONTENT=\"JSP,declarations,JavaServer,Pages,servlets\"> <META NAME=\"description\" \u00a0\u00a0\u00a0\u00a0\u00a0 CONTENT=\"A\u2026","rel":"","context":"In &quot;Code . Programming Samples . \u09aa\u09cd\u09b0\u09cb\u0997\u09cd\u09b0\u09be\u09ae \u0989\u09a6\u09be\u09b9\u09b0\u09a8&quot;","block_context":{"text":"Code . Programming Samples . \u09aa\u09cd\u09b0\u09cb\u0997\u09cd\u09b0\u09be\u09ae \u0989\u09a6\u09be\u09b9\u09b0\u09a8","link":"http:\/\/bangla.sitestree.com\/?cat=1417"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":10132,"url":"http:\/\/bangla.sitestree.com\/?p=10132","url_meta":{"origin":27088,"position":2},"title":"Expressions.jsp Page that demonstrates JSP expressions. Uses the JSP-Styles style sheet.","author":"","date":"July 29, 2015","format":false,"excerpt":"Expressions.jsp\u00a0 Page that demonstrates JSP expressions. Uses the JSP-Styles\u00a0 style sheet. <!DOCTYPE HTML PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\"> <!-- Example of JSP Expressions. \u00a0 \u00a0 Taken from Core Web Programming Java 2 Edition from Prentice Hall and Sun Microsystems Press, . May be freely used or adapted. --> <HTML> <HEAD>\u2026","rel":"","context":"In &quot;Code . Programming Samples . \u09aa\u09cd\u09b0\u09cb\u0997\u09cd\u09b0\u09be\u09ae \u0989\u09a6\u09be\u09b9\u09b0\u09a8&quot;","block_context":{"text":"Code . Programming Samples . \u09aa\u09cd\u09b0\u09cb\u0997\u09cd\u09b0\u09be\u09ae \u0989\u09a6\u09be\u09b9\u09b0\u09a8","link":"http:\/\/bangla.sitestree.com\/?cat=1417"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":10135,"url":"http:\/\/bangla.sitestree.com\/?p=10135","url_meta":{"origin":27088,"position":3},"title":"Expressions.jsp Page that demonstrates JSP expressions. Uses the JSP-Styles style sheet.","author":"","date":"August 9, 2015","format":false,"excerpt":"Expressions.jsp\u00a0 Page that demonstrates JSP expressions. Uses the JSP-Styles\u00a0 style sheet. <!DOCTYPE HTML PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\"> <!-- Example of JSP Expressions. \u00a0 \u00a0 Taken from Core Web Programming Java 2 Edition from Prentice Hall and Sun Microsystems Press, . May be freely used or adapted. --> <HTML> <HEAD>\u2026","rel":"","context":"In &quot;Code . Programming Samples . \u09aa\u09cd\u09b0\u09cb\u0997\u09cd\u09b0\u09be\u09ae \u0989\u09a6\u09be\u09b9\u09b0\u09a8&quot;","block_context":{"text":"Code . Programming Samples . \u09aa\u09cd\u09b0\u09cb\u0997\u09cd\u09b0\u09be\u09ae \u0989\u09a6\u09be\u09b9\u09b0\u09a8","link":"http:\/\/bangla.sitestree.com\/?cat=1417"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":26793,"url":"http:\/\/bangla.sitestree.com\/?p=26793","url_meta":{"origin":27088,"position":4},"title":"Expressions.jsp  Page that demonstrates JSP expressions. Uses the JSP-Styles  style sheet. #Programming Code Examples #Java\/J2EE\/J2ME #JSP","author":"Author-Check- Article-or-Video","date":"May 1, 2021","format":false,"excerpt":"Expressions.jsp Page that demonstrates JSP expressions. Uses the JSP-Styles style sheet. <!DOCTYPE HTML PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\"> <!-- Example of JSP Expressions. Taken from Core Web Programming Java 2 Edition from Prentice Hall and Sun Microsystems Press, . May be freely used or adapted. --> <HTML> <HEAD> <TITLE>JSP Expressions<\/TITLE>\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":26812,"url":"http:\/\/bangla.sitestree.com\/?p=26812","url_meta":{"origin":27088,"position":5},"title":"AccessCounts.jsp  Page that demonstrates JSP declarations. #Programming Code Examples #Java\/J2EE\/J2ME #JSP","author":"Author-Check- Article-or-Video","date":"May 2, 2021","format":false,"excerpt":"AccessCounts.jsp Page that demonstrates JSP declarations. <!DOCTYPE HTML PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\"> <!-- Taken from Core Web Programming Java 2 Edition from Prentice Hall and Sun Microsystems Press, . May be freely used or adapted. --> <HTML> <HEAD> <TITLE>JSP Declarations<\/TITLE> <META NAME=\"keywords\" CONTENT=\"JSP,declarations,JavaServer,Pages,servlets\"> <META NAME=\"description\" CONTENT=\"A quick example of\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/27088","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=27088"}],"version-history":[{"count":0,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/27088\/revisions"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=27088"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=27088"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=27088"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}