title: If/Else Statement in JSP- How to create a Hyperlink
body: <p>The error I have is I'm unsure how to complete this code after searching everywhere on the internet. </p>
  
  <pre><code>&lt;div style="position: absolute; top: 0; right: 0; width: 1000px; text-align:right;"&gt;
  &lt;%
  if ( session.isNew() )
  {out.println("Login" );}
  else
  out.println("Logout");
  %&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>So what this is supposed to do is if the session is NEW (User has not logged in) it should say Login. If session not new (If user is already logged in) It should say Logout. So my code does this now.(I think)</p>
  
  <p>Now my problem is creating a Hyperlink for Login/Logout. When login is clicked, it should redirect to Login.jsp page.(Logout.jsp) for Logout.</p>
  
  <p>Very new Web developer so open to all suggestions.</p>