• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Populate iFrame from main JSP

 
Kevin P Smith
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic