Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'test-jetty-webapp/src/main/webapp/jsp/bean1.jsp')
-rw-r--r--test-jetty-webapp/src/main/webapp/jsp/bean1.jsp15
1 files changed, 15 insertions, 0 deletions
diff --git a/test-jetty-webapp/src/main/webapp/jsp/bean1.jsp b/test-jetty-webapp/src/main/webapp/jsp/bean1.jsp
new file mode 100644
index 0000000000..0c15da2ca4
--- /dev/null
+++ b/test-jetty-webapp/src/main/webapp/jsp/bean1.jsp
@@ -0,0 +1,15 @@
+<html>
+<%@ page session="true"%>
+<body>
+<jsp:useBean id='counter' scope='session' class='com.acme.Counter' type="com.acme.Counter" />
+
+<h1>JSP1.2 Beans: 1</h1>
+
+Counter accessed <jsp:getProperty name="counter" property="count"/> times.<br/>
+Counter last accessed by <jsp:getProperty name="counter" property="last"/><br/>
+<jsp:setProperty name="counter" property="last" value="<%= request.getRequestURI()%>"/>
+
+<a href="bean2.jsp">Goto bean2.jsp</a>
+
+</body>
+</html>

Back to the top