Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'test-jetty-webapp/src/main/webapp/jsp/expr.jsp')
-rw-r--r--test-jetty-webapp/src/main/webapp/jsp/expr.jsp23
1 files changed, 23 insertions, 0 deletions
diff --git a/test-jetty-webapp/src/main/webapp/jsp/expr.jsp b/test-jetty-webapp/src/main/webapp/jsp/expr.jsp
new file mode 100644
index 0000000000..e0b25e2020
--- /dev/null
+++ b/test-jetty-webapp/src/main/webapp/jsp/expr.jsp
@@ -0,0 +1,23 @@
+<html>
+<h1>JSP2.0 Expressions</h1>
+
+<table border="1">
+ <tr><th>Expression</th><th>Result</th></tr>
+ <tr>
+ <td>\${param["A"]}</td>
+ <td>${param["A"]}&nbsp;</td>
+ </tr><tr>
+ <td>\${header["host"]}</td>
+ <td>${header["host"]}</td>
+ </tr><tr>
+ <td>\${header["user-agent"]}</td>
+ <td>${header["user-agent"]}</td>
+ </tr><tr>
+ <td>\${1+1}</td>
+ <td>${1+1}</td>
+ </tr><tr>
+ <td>\${param["A"] * 2}</td>
+ <td>${param["A"] * 2}&nbsp;</td>
+ </tr>
+</table>
+</html>

Back to the top