title: How to pass an Object from one JSP to other JSP?
body: <p>I have two jsp files, jsp1 and jsp2. When an edit button clicked on jsp1 will call a java script function . From javascript function i am calling jsp2. I used window.open beacuse i need this jsp2 as opens as a popup.Now i want to pass an object from jsp1 to jsp2 when i click edit button.How can i do that?.</p>
  
  <pre><code>    This is my code
  
      jsp1
  
      &lt; script language="JavaScript"&gt;
  
              function edit(){
  
                      window.open("jsp2.jsp",'popuppage',"height=600,width=800,status=yes,toolbar=no,menubar=no,location=no");
                      return true;
  
                  }
      &lt; /script&gt;
  
       &lt; stripes:form name="upload"
                          action="/upload.action" enctype="multipart/form-data"&gt;
            &lt; table&gt;
  
           &lt;% List&lt;TableDto&gt; list = (List&lt;TableDto&gt;)request.getAttribute("table"); %&gt;
  
                              &lt;%
                                  if(list != null){
                                   for (TableDto dto : list) { 
                              %&gt;
                        &lt; tr&gt;
                                  &lt;td&gt;&lt;%=dto.getName()%&gt;&lt;/td&gt;
                                  &lt;td&gt;&lt;img src="&lt;%=dto.getPath() %&gt;" width="40px"
                                      height="40px" /&gt;&lt;/td&gt;
                                  &lt;td&gt;&lt;%=dto.getText()%&gt;&lt;/td&gt;
                                  &lt;td&gt;
  
  
                                  &lt;input type="image" name="edit"onclick="edit()"
                                      src="${globalPath}/images/edit_pen.jpg"&gt;
  
                      &lt; /tr&gt;
  
                              &lt;%
                                  } 
                                  }
                              %&gt;
  
            &lt;/table&gt;
      &lt; /stripes:form&gt;
  </code></pre>