title: How to keep variable unchange in jsp?
body: <p>I have the following code snippet in jsp:</p>
  
  <pre><code>String Key=null;
  
  if(request.getParameter("project")!=null) { 
          Key = request.getParameter("project").trim();
  }
  
  if (AM == null) {
          response.sendRedirect("../portal/login.jsp?from=index.jsp");
  }
  </code></pre>
  
  <p>In here after redirection the variable Key is changed. How can I keep this variable unchanged after redirection?</p>