Solved

How to get Java Servlet output into a different HTML Frame.

Posted on 2003-11-05
6
398 Views
Last Modified: 2013-11-24
Hi,
I have a HTML Form in a frame that sends information to a servlet.  I would like the output of the servlet to go to a different Frame.  How can I do this?

thanks

Sandy
0
Comment
Question by:hiderrt1
  • 4
6 Comments
 
LVL 35

Expert Comment

by:TimYates
ID: 9687691
I think you will need to do some Javascript jiggery-pokery to get the form to post from the other frame...

AFAIK, there is no way to redirect the servlet output back into another frame...

I may be wrong...
0
 
LVL 15

Expert Comment

by:jimmack
ID: 9687711
LOL ;-)

>> jiggery-pokery

That's a technical term is it ?

;-)
0
 
LVL 35

Expert Comment

by:TimYates
ID: 9687742
errr...yes ;-)
0
Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

 

Author Comment

by:hiderrt1
ID: 9687830
Can someone show me how this might work?  I am not aware how I can have Javascript on one frame comunicate with Javascript on another frame.
0
 
LVL 35

Expert Comment

by:TimYates
ID: 9687871
parent.frames[ 1 ].postData( "Tim" ) ;


then in the other frame, have a form with a hidden value (in this case name), and do:

function postData( name )
{
  document.forms[ 0 ].name = name ;
  document.forms[ 0 ].submit ;
}

I think...
0
 
LVL 35

Accepted Solution

by:
TimYates earned 50 total points
ID: 9687886
if you have named your frames, I *think* you can do:

parent.theotherframe.postData( "Tim" ) ;

------------

http://www.experts-exchange.com/Web/Web_Languages/JavaScript/Q_20287547.html

Seems to agree with me, but I am no Javascript expert :-(
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question