Hi ,
   You will have to use some javascript functions. Give your mainPage in a
javascriptwindow variable mainVar, tehn in your window closing function of
your child window, open the servlet which creates the main window in the
mainVar. So effectively since the main window already exists, the servlet
will update the contents of that frame with the new values.

Regards,

Rakesh

> ----------
> From:         Lietz, Carol[SMTP:[EMAIL PROTECTED]]
> Reply To:     A mailing list for discussion about Sun Microsystem's Java
> Servlet API Technology.
> Sent:         Tuesday, August 08, 2000 9:05 AM
> To:   [EMAIL PROTECTED]
> Subject:      Main window and pop-up window - how to know when pop-up was
> close d
>
> I have a main servlet window which has a hypertext link to a pop-up window
> which appears on top of the main one.  In this pop-up, the user changes
> certain values and clicks OK.  This saves the changes in an object I've
> stored in the session and then closes down the pop-up.   My question is
> this:  Is there anyway for the main window to know that the pop-up was
> closed down?    I'm wanting this main window to realize the pop-up was
> closed and then change it's appearance based on what the user did in that
> little pop-up.   But since there is no "event" occurring on the main
> window,
> it just sits there.  (Which in most cases would be the exact behavior I'd
> want; not here.)
>
> If the solution is to use HttpSessionBindingListener, could someone point
> me
> to a place where there is an example on how to use this interface?  I have
> two servlet books, but neither gives me enough info to understand how to
> hook this in.
>
> Any help would be most appreciated.
> Thanks,
> Carol
>
> P.S. In case this helps, I open up the pop-up using javascript's
> "window.open()" and I close the pop-up using javascript's "window.close()"
>
> __________________________________________________________________________
> _
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to