title: Redirect whole page from imported JSP
body: <p>I have two jsp, let's say <code>A.jsp</code> and <code>B.jsp</code>. <code>A.jsp</code> has the following code:</p>
  
  <pre><code>&lt;c:import url="B.jsp" &gt;    
      &lt;c:param name = "page_title" value = "Title" /&gt;
  &lt;/c:import&gt;
  </code></pre>
  
  <p>In <code>B.jsp</code> i need to check some conditions and do a redirection to <code>Login.jsp</code>. I achieve this by doing <code>response.sendRedirect(Logn.jsp)</code></p>
  
  <p>The problem is that the redirection is made on <code>B.jsp</code> so the result is that the browser displays the content of <code>Login.jsp</code> and <code>A.jsp</code> but i need to redirect the whole page to <code>Login.jsp</code>. That is, the browser should only show <code>Login.jsp</code>.</p>
  
  <p>Consider that the redirection must be made on <code>B.jsp</code> unless there is a way that <code>B.jsp</code> can tell <code>A.jsp</code> the url to redirect to.</p>
  
  <p><strong>EDIT:</strong> <code>A.jsp</code> and <code>B.jsp</code> belong to different projects</p>