Win a copy of Mesos in Action this week in the Cloud/Virtualizaton 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: 64847
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