aspose file tools*
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
Author

refresh parent page from child page in ModalDialog

Niraj Jamun
Greenhorn

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

parent.jsp
child.jsp
subchild.jsp



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..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: refresh parent page from child page in ModalDialog