title: retrieving attribute in iframe
body: <p>I have problem in retrieving the request attributes in IFRAME.
  the following are the snippets, in jsp1.jsp, i have 2 IFRAMES whose src are jsp2.jsp and jsp3.jsp .i would like to retrieve the request attributes in both the pages.Basically the attribute is an object of a class and some values were set for class variables in the jsp1.jsp page.I would like to share that object between these 3 pages. Inside the IFRAME i am getting null value for the attribute..I have tried both session.setAttribute and request.setAttribute</p>
  
  <h2>jsp1.jsp</h2>
  
  <pre><code>&lt;td&gt;
  &lt;%
  Search beans=(Search)request.getAttribute("s");
  session.setAttribute("s");
  %&gt;
  &lt;iframe name="frame1" id="frame1" tabIndex="-1" width="100%" height="100%"   
  frameborder="0" src="jsp2.jsp"&gt;&lt;/iframe&gt;
  &lt;iframe name="frame2" id="frame2" tabIndex="-1" width="100%" height="100%" 
  frameborder="0" src="jsp3.jsp"&gt;&lt;/iframe&gt;
  &lt;/td&gt;
  </code></pre>
  
  <h2>jsp2.jsp</h2>
  
  <pre><code>Search beans = (Search)session.getAttribute("s");
  if (beans != null) {
  //process the bean
  }
  </code></pre>
  
  <p>Could someone please let me know how to retrieve the set  Attribute. And also i can't pass it as an parameter to the jsp2.jsp since it is an object</p>
  
  <p>Thanks
  Priyam</p>