File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

returning the result in different frame

 
ashok ganesan
Ranch Hand
Posts: 50
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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...
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic