title: restrict url access in JSP
body: <p>I have a site that uses forms and validates fields and redirects to another pages etc, but I need to know how to keep any user from accessing a page directly with the URL and it gets redirected to the login form...</p>
  
  <p>I've seen this, but I don't know how to call it. :S</p>
  
  <p>I think it's with session variables, and that I should check for a session variable in the top of the page that I want to restrict.</p>
  
  <p>I am using JSP in building my website.</p>