Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

returning the result in different frame

 
ashok ganesan
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, in my html page i have got two frames frame1 and frame2 . in frame1 i have got a form tag which on clicking the submit button will call a servlet and the servlet will return the result to frame1. instead of frame1 i want the result to be shown on frame2 .is there any chance of doing this.



regards and thanks

ashok
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make the form post to frame two by setting the target.

Eric
 
Subhadip Chatterjee
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ashok,
to do as Eric has said, i am writing a sample code for you:
on click of link in Frame1, execute this script->
parent.<FRAME2_name>.location.href = "<your action to call servlet & get response>";

i think this will solve your purpose...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic