Solved

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

Posted on 2003-11-05
6
393 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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Java and GPO 11 71
thymeleaf natural templating vs JSP 2 68
Java Options in Zimbra Server 2 46
How to convert String matching to regex in java 4 21
Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now