This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Populate iFrame from main JSP" Watch "Populate iFrame from main JSP" New topic
Author

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?

Cheers.
Ben Souther
Sheriff

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
 
 
subject: Populate iFrame from main JSP
 
Similar Threads
JSPs, Servlets and iFrames
Passing variable value from a JSP file to another JSP file embedded within the first
pass the session variable to 2 jsp simultaneously
manipulating url returned from jsp include
how to pass field value in an IFrame to its parent