This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Setting target frame in Requestdispatcher

 
Vani Sreedharan
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic