How to maintain popup window after submit action form?

How to maintain popup window after submit action form?

Hello,
I have page which created by struts2 and in that page have link to open popup window which created using jquery UI dialog model form.

i have created the another form in same jsp page and have action button to do connect the database.Now while return back, i need to maintain the same popup window in the page.

How to maintain the same popup window ?

Example :

page A (parent jsp page) has form with action and buttons). Now i have created another form for popup window in same jsp page with another action button.

After submit the popup window submit button , i need to maintain the same popup window.

$( "#popup" ).click(function() { $( "#dialog-form" ).dialog( "open" ); }); $( "#dialog-form" ).dialog({ autoOpen: false, height: 300, width: 350, modal: true, buttons : { "Use Selected" : function(){ } } });


Struts from action :

<div id="aaa"> <form action="productxxx" methid="post"> --- ---- </form> <div id="dialog-form"> <form action="productfinder" method="post"> <textarea id="TextArea" name="productNbr" ><s:property value='productNbr'/></textarea> <s:submit action="product" method="finder" value="Search" />


Form "xxx" is original form which forwarding to another page after submit the button.but second form is for popup window which has submit button, So I'm submitting the second form button, its searching another jsp page to forward,which is not correct.because i given action class return type as finder.So i given the return as "xxx" but its closing the popup window.But i need to maintain the popup window after submit the button.