ulrich
2016-12-24 be9fa27d6741b2080e91db43e0b1e8aac7565be0
commit | author | age
f4a79c 1 <%@page contentType="text/html" pageEncoding="UTF-8"%>
U 2 <!DOCTYPE html>
3 <html>
4   <head>
5     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
6     <title>um Werte</title>
7   </head>
8   <body>
9     <p>Werte</p>
10     <p>pathInfo: <%=request.getPathInfo()%></p>
11     <p>requestURL <%=request.getRequestURL()%></p>
12     <p>contextPath <%=request.getContextPath()%></p>
13     <p>servletPath <%=request.getServletPath()%></p>
14     <p>
15       <%
16         String pathInfo = request.getPathInfo();
17         String[] path = pathInfo.split("/");
18         for(int i = 0; i < path.length; i++) {
19        %>
20         <p>path[<%=i%>]: <%=path[i]%></p>
21        <%
22         }
23        %>
24     </p>
25   </body>
26 </html>