wood burning stoves*
The moose likes JSP and the fly likes refresh parent page from child page in ModalDialog Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "refresh parent page from child page in ModalDialog" Watch "refresh parent page from child page in ModalDialog" New topic

refresh parent page from child page in ModalDialog

Niraj Jamun

Joined: Apr 17, 2012
Posts: 5
I have three jsps


In parent.jsp i have button, on click of this button i open child.jsp in modaldialog popup

In Child.jsp i have 3 text fields, table which is collection(arraylist) and Edit button
i select one of record from collection and click on edit button,then i open subchild.jsp again in modaldialog popup

In subchild.jsp i have 4 text fields, ok and cancel button
data in subchild.jsp is from collection of child.jsp

here now in subchild.jsp on click of ok i have to submit this textfield values and child.jsp should get refresh
and the collection data should get updated
how to achieve this?
Shankar Tanikella
Ranch Hand

Joined: Jan 30, 2011
Posts: 329

Hi Niraj,

1. try window.opener.reload() from javascript on submit from the child page - but for this a browser specific alert message for refreshing the content is displayed

2. try to submit the action of the parent page from the child window on submit [the parent refreshes] and then close the child window. Something like this

Have Fun with Java
little,little.. little by little makes a lot..
It is sorta covered in the JavaRanch Style Guide.
subject: refresh parent page from child page in ModalDialog
Similar Threads
Updating parent JSP(without a page refresh) on pop-up action
bean:write Vs html:text
updated data from child, refresh parent ,how to?
navigating from one page (which has a jsp:include) to another page in jsf
Error in JSP[Unexpected Error]