title: Can't get request attribute in struts action class
body: <p>I have a jsp page. I am calling the jsp page in a iframe and appending new parameter to the url.</p>
  
  <p>The usrl looks like </p>
  
  <p>http:\localhost:8080\Search.pp?blah=true;</p>
  
  <p>So when as the search page called has got some filters so in the action class i have code like this</p>
  
  <pre><code>    String Parameter =  
            request.getParameter(blah);
      if (StringUtils.isNotEmpty(Parameter)) {
          Search = Boolean.parseBoolean(campaignSearchParameter);
      }
  </code></pre>
  
  <p>and then in the jsp page i do something like </p>
  
  <pre><code>    final Boolean Search = (Boolean) request.getAttribute("blah") == null ? false : (Boolean) request
          .getAttribute("blah");
   request.setAttribute("blah",Search); 
  </code></pre>
  
  <p>I use this "Search" boolean variable to hide something when it's called from another page. 
  So if the user clicks any links in this page it again goes back to struts same action class.
  My problem is that for the first time everything works fine. For next time i would expect in the struts action this variable to be set but looks like it's returning me null.</p>