File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Forwarding responses to frames Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Forwarding responses to frames" Watch "Forwarding responses to frames" New topic

Forwarding responses to frames

Jason Kwok
Ranch Hand

Joined: Mar 31, 2005
Posts: 126

I'm making an application which must use frames. I have a horizontal "top" frame, a left side "menu" frame and then the "main" target frame.

This project requires that I have forms that post to servlets in both the top horizontal frame and the left side menu frame. The problem is that the user wants the results to show up in the main target frame.

Is it possible to forward the response back to a different frame like this?

Thanks for any help and suggestions!
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63838

No. The response will always appear in the window or frame that the request was submitted into.

[Asking smart questions] [About Bear] [Books by Bear]
Jason Kwok
Ranch Hand

Joined: Mar 31, 2005
Posts: 126
I didn't think so, I guess I'll have to redesign the layout a bit then!

Thanks for your help yet again Bear!!
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

I must be misunderstanding the problem.
Can't you use the html TARGET attribute of a link, or a form ?

(If you meant that you want a single request to post simultaneously to two different frames, then forget about this)
[ March 19, 2006: Message edited by: Satou kurinosuke ]

[My Blog]
All roads lead to JavaRanch
I agree. Here's the link:
subject: Forwarding responses to frames
It's not a secret anymore!