opening and closing of a dialog window in JSP
Posted on 2002-07-14
Hello everyone, i hope you can help on this
I have a display.jsp file that opens a dialog window when a button is clicked. An input is then made in the dialog window (input.jsp). The dialog window's form is then submitted to another jsp page(without html) to process the inputted data then go back to display.jsp using pageContext.forward( "display.jsp" ).
When I opened the dialog window using 'window.open("input.jsp",...)' then close it using 'self.close'I got an IO exception error and no update was made in display.jsp.
When I used window.showModalDialog("input.jsp",....)then close it using self.close, display.jsp is updated but displayed in another window(browser).
How will I open the dialog window then update the display.jsp without opening a new browser window?
Is it possible to forward 'display.jsp' to previous browser where 'display.jsp' was first displayed? how will I do it?
thanks in advance