jQuery in Action, 2nd edition*
The moose likes Servlets and the fly likes Writing with one servlet in two different frames Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Writing with one servlet in two different frames" Watch "Writing with one servlet in two different frames" New topic
Author

Writing with one servlet in two different frames

tulamidan
Greenhorn

Joined: Sep 18, 2002
Posts: 2
There must be a search function but I couldn't find it :roll: so please excuse...
I want the result from one Servlet to be shown in two different frames. So the result is shown twice on the same site. How can I realize this?
Thx Tulamidan
Garann Means
Ranch Hand

Joined: Jan 28, 2002
Posts: 214
If I understand your question, you could use JavaScript for this. Pass the servlet's info to the parent page (the one holding the frames), capture it in JavaScript variables, then have the child frames request those variables from the parent onLoad().
tulamidan
Greenhorn

Joined: Sep 18, 2002
Posts: 2
Sounds good, but as I'm still a greenhorn in the whole Servlet and java stuff I don't have any idea how to realize this. I know how to put the Servlet response into a frame, but how can I store it in a variable? Do you have any examples?
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
tulamidan
Welcome to the JavaRanch! Please adjust your display name to meet
the JavaRanch Naming Policy. You can change it here.
Thanks!
and welcome to the JavaRanch!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Writing with one servlet in two different frames
 
Similar Threads
Selective frame refresh
Servlet to JSP
returning the result in different frame
Frames or not, your suggestions
display image and text both on jsp page