Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Writing with one servlet in two different frames

 
tulamidan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic