• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

returning the result in different frame

 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Make the form post to frame two by setting the target.

Eric
 
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
reply
    Bookmark Topic Watch Topic
  • New Topic