Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

from servlet wants to close the application

 
kapildev ganeshan
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
while closing the child window of application I want to remove the attributes from a existing application.For that I submited the form to a servlet while closing the application. From that servlet i have removed my session attribute. Is it possible to close the child window (from where I came).

thank you for advance
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can wreite

<script>
window.close();
</script>

in the child window and close it.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic