title: how can i get the session attribute in desired type
body: <p>from another java application, i had already set my attribute to this:</p>
  
  <pre><code>     HttpSession session = request.getSession(true);
       session.setAttribute("SessionUser", userName);
  </code></pre>
  
  <p>I'm not sure how to parse a specific attribute into a string.</p>
  
  <pre><code>String query = "SELECT title, first, last, email FROM member WHERE email="+**??**;
  </code></pre>