File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes returning the result in different frame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "returning the result in different frame" Watch "returning the result in different frame" New topic

returning the result in different frame

ashok ganesan
Ranch Hand

Joined: Jan 02, 2007
Posts: 50
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

Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
Make the form post to frame two by setting the target.

Subhadip Chatterjee
Ranch Hand

Joined: Dec 12, 2006
Posts: 93
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...

Refreshing life every moment...
I agree. Here's the link:
subject: returning the result in different frame
It's not a secret anymore!