aspose file tools*
The moose likes Servlets and the fly likes Setting target frame in Requestdispatcher Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Setting target frame in Requestdispatcher" Watch "Setting target frame in Requestdispatcher" New topic
Author

Setting target frame in Requestdispatcher

Vani Sreedharan
Greenhorn

Joined: May 11, 2006
Posts: 14
hi,
I have a JSP which has an iframe where dynamic loading of jsps happen ,a static left menu and top menu. I want to set the target of the jsps to the frame in servlet.I use RequestDispatcher to load these jsps, any idea how to set the target to the iframe when dispatching?

Thanks,
Vani
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61221
    
  66

Can't be done. The response will appear in the window or frame in which the request was made.

You have to use client-side mechanisms to target the iframe when you initiate the request.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Setting target frame in Requestdispatcher