GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — sample-java-project/webapp/count.jsp at servlet · fossabot/sample-java-project Expand file tree/ Copy pathcount.jspMore file actions 34 lines (33 loc) · 739 Bytes / Copy pathcount.jspFile metadata and controls34 lines (33 loc) · 739 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 <html> <head> <title>JSP Demo</title> </head> <body> <h1>JSP Demo</h1> <%! private int counter; private synchronized int count() { return ++counter; } %> <% String name = (String) session.getAttribute("name"); if (name != null) { %> <p>Welcome back, <%= name %>.</p> <form action="/logout" method="post"> <input type="submit" value="logout"/> </form> <% } else { %> <form action="login" method="post"> <input type="text" name="name"/> <input type="submit" value="login"/> </form> <% } %> <p> This page has been visited <%= count() %> times. </p> </body> </html> |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |