title: How to print current date in JSP?
body: <p>I want to do something like this:</p>
  
  <pre><code> &lt;?php echo date('Y'); ?&gt;
  </code></pre>
  
  <p>But then in a <code>.jsp</code> file. All the <a href="http://www.kodejava.org/examples/21.html" rel="noreferrer">tutorials</a> I'm seeing require building a class somewhere. We're running appFuse and Tapestry. Surely one of those (if not Java itself) provide us with something to do this sort of thing without all that overhead. </p>
  
  <p>This seems like it should work, but doesn't:</p>
  
  <pre><code> &lt;%= new Date.getYear() %&gt;
  </code></pre>