ulrich
2016-11-28 f4a79ccd85d6175cef27e081628dd013a0b6d77e
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>