This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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: 63351
    
  70

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Setting target frame in Requestdispatcher
 
jQuery in Action, 3rd edition