title: Other JSP pages are opening in same jsp page
body: <p>I am using JSP for different login user to open their own individual content.I used session and invalidated at the logout.jsp. So it is not opening the jsp pages after logout by copying the url and try to run in the browser. But i need a solution that, When i enter through login with one type of user (for eg:http://localhost:8080//CEO.jsp) it works fine if i give (for eg:http://localhost:8080//Staff.jsp) it is opening in same CEO.jsp page. I need that to not open . Please help me in this.. </p>
  
  <pre><code>&lt;%@ page language="java" contentType="text/html; charset=UTF-8"
      pageEncoding="UTF-8"    import="Accessing.UserBean"%&gt;
      &lt;%@ taglib uri="/WEB-INF/tlds/birt.tld" prefix="birt" %&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
  &lt;title&gt;Insert title here&lt;/title&gt;
  &lt;script type="text/javascript" &gt;
  javascript:window.history.forward(1);
  &lt;/script&gt;
  &lt;style&gt;
  .title
  {
  width:769px;
  height: 65px;
  margin:15px auto;
  }
  .left
  {float: left;
  margin: 20px 50px 20px 30px;
  padding: 0 0 25px 15px;
  width:700px;
  border: 1px solid #CCCCCC;
  background-color: #CC6699;
  color: #990066;
  }
  .right_side
  {
  float:right;
  width:580px;
  color: #000000;
  background-color: #FFFFFF;
  margin: 20px 0px 20px 10px;
  padding:0px 0px 25px 15px;
  border:1px solid #CCCCCC;   
  }
  &lt;/style&gt;
  &lt;/head&gt;
  &lt;%
  UserBean currentUser =(UserBean)session.getAttribute("currentSessionUser");%&gt;
  &lt;% 
  try{
      if((String)currentUser.getRoles()!=null)
   {
    %&gt;
  &lt;body bgcolor=#CC9999&gt;
  
  &lt;div class="title"&gt; 
  
  
  &lt;div class="rightside"&gt;
  &lt;a href="signingout.jsp"&gt;Logout&lt;/a&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="left"&gt;
  &lt;birt:viewer id="birtViewer" reportDesign="BankCredit.rptdesign"
  pattern="frameset"
  height="450"
  width="700"
  format="html"&gt;
  &lt;/birt:viewer&gt;
  &lt;/div&gt;
  &lt;%
      }
    else
        response.sendRedirect("signin.jsp");
      }
  catch(Exception e)
      {
    out.println("&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;");
    out.println("&lt;center&gt;&lt;b&gt;&lt;font color=red&gt;SORRY!! ACCESS DENIED.INVALID USER.&lt;/font&gt;&lt;/b&gt;&lt;/center&gt;");
    out.println("&lt;br&gt;&lt;br&gt;");
    out.println("Please click here for &lt;a href=signin.jsp&gt;&lt;b&gt;Login&lt;/b&gt;&lt;/a&gt;");
   }
  %&gt; 
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>