Solved

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

Posted on 2003-11-05
6
402 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Don't Miss ATEN at InfoComm 2017!

Visit booth #2167 to see the  new ATEN VM3200 32 x 32 Modular Matrix Switch. Other highlights include the VE8950 4K HDMI Over IP Extender, VS1912 12-Port DP Video Wall Media Player  and VK2100 ATEN Control System. Register now with Free Pass Code ATEN288!

 

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

Don't Miss ATEN at InfoComm 2017!

Visit booth #2167 to see the  new ATEN VM3200 32 x 32 Modular Matrix Switch. Other highlights include the VE8950 4K HDMI Over IP Extender, VS1912 12-Port DP Video Wall Media Player  and VK2100 ATEN Control System. Register now with Free Pass Code ATEN288!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Chrome and Firefox Java 5 88
how to debug htl and js pages 8 79
Bot application - advice 3 80
Does it make sense to split a controller into two file 6 18
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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…
The viewer will learn how to implement Singleton Design Pattern in Java.

738 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