I have one page list.jsp having list of all records in table and one button at top to add new record.
list.jsp
I want to open add.jsp as a popup window.
add.jsp
As from my comment from the other answer you just need to handle the window.onunload event and use the window.opener property to tell the calling page to be refreshed.
window.onunload
window.opener
2.add.jsp