my dog learned polymorphism*
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
Author

Forwarding responses to frames

Jason Kwok
Ranch Hand

Joined: Mar 31, 2005
Posts: 126
Hi,

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!
Jason
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60781
    
  65

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


[Asking smart questions] [Bear's FrontMan] [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é
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Forwarding responses to frames
 
Similar Threads
Feeding a value to a field in a Frame
JavaScript Menu, Submenu and Framesets
Tiles vs Frames
servlets to frames
Frameset Refresh Problem