×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Frames and JSPs

Frames and JSPs

Frames and JSPs

(OP)
Hi All,
Can somebody help ? The following is the situation and I need a solution to this problem. Thanks for your time.

I have frames.jsp which contains frame1.jsp & frame2.jsp. From frame2.jsp I call a servlet to create a Popup window. I want the popup window to close upon submission of the form and also want to refresh frame1.jsp with whatever data that was input in popup window.

I do this as follows:
Upon submission of popup.jsp I call a PopupServlet to obtain all 'form' parameters thru the 'request' object and update the database. I also take the request.dispatcher to forward to some x.jsp where in 'onLoad' method of the x.jsp I call a fuction that would close the popup. The reason I do this is because , as soon as I call the popupservlet, it takes me to a new browser and I do not want that. I also want to close the popup. It doesnt happen if I give 'window.close()' in a javascript function of the popup.jsp just after I trigger the form for submission by means of a servlet, because the handle of the popup gets lost here.

Now all is well until the data gets reflected in the database, and the close of popup happens in x.jsp. But I do not know how to call the reload of frame1.jsp inside x.jsp because the handle to that frame is not visible here.

Thanks,
avs

RE: Frames and JSPs

U want to capture the value of the popup.jsp in the frame1.jsp, right. See there is one simple way to do this is open the popup.jsp on the onload of the first.jsp and using java script u can fetch the value of it in this way

window.opener.document.formname.fieldname.value=document.formname.fieldname.value;)

Thanks & Regards
stylebhai



Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close