jQuery in Action, 3rd edition
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

Setting target frame in Requestdispatcher

Vani Sreedharan

Joined: May 11, 2006
Posts: 14
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?

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63837

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] [About Bear] [Books by Bear]
I agree. Here's the link: http://aspose.com/file-tools
subject: Setting target frame in Requestdispatcher
It's not a secret anymore!