title: How to access the session from a Java class
body: <p>I need to write a small Java class that will enable me to add to and read from the current user session.</p>
  
  <p>Everything I see refers to Servlets but I'd ideally like to just use a plain old class.</p>
  
  <p>Can anyone please help this Java Newbie?</p>
  
  <p>Thanks</p>