File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Populate iFrame from main JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Populate iFrame from main JSP" Watch "Populate iFrame from main JSP" New topic

Populate iFrame from main JSP

Kevin P Smith
Ranch Hand

Joined: Feb 18, 2005
Posts: 362
Hi guys

i'm currently using a Servlet to post some results to a JSP. The problem is the resuklts are within a second JSP inside an iFrame. I am posting the results back to the main parent JSP and need to somehow parse them over to the child JSP withi the iFrame (still with me) SO:

Servlet -> Results.jsp -> iFrmae(frame.jsp)

Any ideas?

Ben Souther

Joined: Dec 11, 2004
Posts: 13410

As far as the server side code is concerned, each frame is a different client and has no handle to any client other than the one from which the request was made.

The solution to this is the "target" attribute of the link or form that made the request.

Moving to the HTML/Javascript forum where you can get more help on the target attribute and/or frame interaction via Javascript.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: Populate iFrame from main JSP
It's not a secret anymore!