Link to home
Start Free TrialLog in
Avatar of hiderrt1
hiderrt1

asked on

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

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
Avatar of TimYates
TimYates
Flag of United Kingdom of Great Britain and Northern Ireland image

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...
Avatar of jimmack
jimmack

LOL ;-)

>> jiggery-pokery

That's a technical term is it ?

;-)
errr...yes ;-)
Avatar of hiderrt1

ASKER

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.
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...
ASKER CERTIFIED SOLUTION
Avatar of TimYates
TimYates
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial