ulrich
2016-12-24 be9fa27d6741b2080e91db43e0b1e8aac7565be0
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
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>um Werte</title>
  </head>
  <body>
    <p>Werte</p>
    <p>pathInfo: <%=request.getPathInfo()%></p>
    <p>requestURL <%=request.getRequestURL()%></p>
    <p>contextPath <%=request.getContextPath()%></p>
    <p>servletPath <%=request.getServletPath()%></p>
    <p>
      <%
        String pathInfo = request.getPathInfo();
        String[] path = pathInfo.split("/");
        for(int i = 0; i < path.length; i++) {
       %>
        <p>path[<%=i%>]: <%=path[i]%></p>
       <%
        }
       %>
    </p>
  </body>
</html>