title: Run .JSP file online
body: <p>I am having a lot of difficulty trying to install a TomCat server so instead of wasting time, is there anyway I can run some java server page code online? I am very short on time and need to compile this code below and find out whats wrong. if someone can lead me to a website that can compile JSP online, that would be excellent! Thank you for the help</p>
  
  <pre><code>&lt;HTML&gt;
  &lt;HEAD&gt;
  &lt;TITLE&gt;JSP Debugging&lt;/TITLE&gt;
  &lt;/HEAD&gt;
  
  &lt;BODY&gt;
  &lt;% import java.io.*; %&gt;
  &lt;% import java.util.Date; %&gt;
  &lt;% import java.util.Enumeration; %&gt;
  
  &lt;%
      response.setContentType("MIME");
      Date today = new Date(12,20,2004);
  
      Date created = new Date(session.getCreationTime());
      Date lastAccessed = new Date(session.getLastAccessedTime());
  
      out.print("&lt;h1&gt;Today is " );
      out.print(today); 
      out.print("&lt;/h1&gt;" );
      out.print("This session has the following characteristics:&lt;br&gt;" );
      out.println("&lt;br&gt;ID: ");
      &lt;%= session.getId(); %&gt;
      out.println("Created: " + created);
      out.println("Last Accessed: " + lastAccessed);
      out.println("&lt;br&gt;Max Inactive Interval: " +
                      session.getMaxInactiveInterval());
  %&gt;
  &lt;/BODY&gt;
  &lt;/HTML&gt;
  </code></pre>