title: Error: Calendar cannot be resolved in JSP
body: <p>I tried to get date in JSP like what I searched before, but it didn't work. Here is my code.</p>
  
  <pre><code>&lt;%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*, java.text.*;" errorPage="" %&gt;
      &lt;%!
          DateFormat tipe = new SimpleDateFormat("EEE, MMM d, ''yy");
          Calendar cal = Calendar.getInstance();
      %&gt;
      &lt;% 
          out.print(tipe.format(cal.getTime()));
      %&gt;
  </code></pre>
  
  <p>Why it said "Calendar cannot be resolved"? Where's the mistake?</p>