Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to open a new modal window from Servlet

 
kapildev ganeshan
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I need to open a modal window from a servlet. if I give the response.sendRedirect() it is opening in the same window. But i want a modal window to be opened. please help me for this requirement.
 
karthikeyan Chockalingam
Ranch Hand
Posts: 259
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe you can only open a new window on the client side (browser)... so dispatch a html or jsp that uses Javascript and opens a new window.

Also modal window is specific to Internet explorer and not supported in many other browsers. Please refer http://javascript.about.com/library/blmodal.htm
[ February 15, 2006: Message edited by: karthi keyan ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You would do this either with Javascript, or by setting a target attribute in the form from which you are submitting.

Either way, it's more of an HTML issue than a servlet one so moving:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic