yeah cool. how cud i have missed it. yeah that shall solve my purpose. and i think that using response.sendRedirect or any other jsp method shall not close the window and go to the opener window. thanks.
Vikramjit Singh, Systems Engineer, GTL Ltd. Ph. 7612929-3140 -----Original Message----- From: Dunwiddie, Bruce [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 8:47 AM To: [EMAIL PROTECTED] Subject: Re: CLOSING THE WINDOW AFTER ENTERING DATA. from what I understand, this should work for you, although not the way you wanted to do it. out.println("<script>"); out.println("window.opener.location.href='a.jsp?parameter1=value1¶meter2 =value2';"); out.println("self.close();"); out.println("</script>"); -----Original Message----- From: Vikramjit Singh [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 4:22 AM To: [EMAIL PROTECTED] Subject: CLOSING THE WINDOW AFTER ENTERING DATA. HI ALL, I have a problem which i want to solve. I open a window from one jsp say a.jsp and let the other window be b.jsp. After the values in b.jsp are entered into the database the window should closing refreshing a.jsp. I have done this with javascript like out.println("<script>"); out.println("window.opener.history.go(0)"); out.println("self.close()"); out.println("</script>"); But my problem is that i dont want to use javascript because a.jsp expects parameters which i want to pass using response.sendRedirect() , so that the page gets refreshed. And b.jsp closes. Could anyone throw some light on this. Regards, Vikramjit Singh, Systems Engineer, GTL Ltd. Ph. 7612929-3140 =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
