title: Tomcat Manager - Change sessionsList.jsp
body: <p>I want to change the table from the page <code>/manager/html/sessions</code> of Tomcat.</p>
  <p>The <code>jsp</code> file for that page is <code>tomcatpath/webapps/manager/WEB-INF/jsp/sessionsList.jsp</code></p>
  <p>I want to add a new column in table which contains the path of last page which client has requested.</p>
  <p>Ex: if the last request of client is <code>mydom.com/path/3</code>, I want to show in table <code>/path/3</code></p>
  <p>This is the part where are iterated all sessions</p>
  <pre><code>&lt;%
    for (Session currentSession : activeSessions) {
  
         String currentSessionId = JspHelper.escapeXml(currentSession.getId());
         String type;
         if (currentSession instanceof DeltaSession) {
             if (((DeltaSession) currentSession).isPrimarySession()) {
                 type = &quot;Primary&quot;;
             } else {
                 type = &quot;Backup&quot;;
             }
         } else if (currentSession instanceof DummyProxySession) {
             type = &quot;Proxy&quot;;
         } else {
             type = &quot;Primary&quot;;
         }
         
         //I have problem getting the last accessed path by client.
         String lastPath = ...;
  
  %&gt;
  
  //html where is printed every row with data from session
  //use here &lt;%= lastPath %&gt;
  
  &lt;% 
    } //end of for 
  %&gt;
  
  
  </code></pre>
  <p>I don't know how to extract the last accessed path.</p>
  <p><code>Tomcat version: Apache Tomcat/9.0.20</code></p>