title: Creating a link to logout for JSP
body: <p>when a user logins to my application, he submits a form to be processed through the Servlet. The servlet creates a session for the user. How would I create a link so the user can logout? I cannot seem to directly link to a Servlet. How would I delete the session and link back to the homepage?</p>
  
  <p>Here is a way that I could do it, but it doesn't seem "right".
  I could link back to the index.jsp?logout=true. My index.jsp will see if logout is true and delete the sessions.</p>
  
  <p>Is there another way to do it?</p>