Yes, but only with an indirection.
Because the servlet is processing on the server side.
But closing the window is an client side action.
You will need JavaScript
response.getWriter().println("<script
language='JavaScript'>self.close()</script>");
Hope it helps.
Greetings Alex
+-----------------+
| Alexander Meyer |
+-----------------+--------------------------------+
| Sponackerweg 54 |
| 63808 Haibach |
| |
| Tel. 0 60 21 / 61 05 35 |
| E-Mail [EMAIL PROTECTED] |
| Homepage http://www.alexmeyer.org |
| |
| Zertifikate: |
| Brainbench Certified Master Java Server Pages |
| (JSP 1.1) Developer |
| Brainbench Certified Master PHP 4 Developer |
| Brainbench Certified Master JavaScript Developer |
| Brainbench Certified Master HTML 3.2 Developer |
| Brainbench Certified Java 2 Developer |
| Brainbench Certified XML Developer |
| Brainbench Certified HTML 4 Developer |
| Brainbench Certified WWW Concepts Architect |
+--------------------------------------------------+
> -----Ursprüngliche Nachricht-----
> Von: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]Im Auftrag von
> [Mariano Pollio]
> Gesendet: Donnerstag, 8. März 2001 12:10
> An: [EMAIL PROTECTED]
> Betreff: Urgent!!!
>
>
> Hi,
> My problem is close window browser with (HttpServletResponse) response.
>
> Is this possible ?
>
>
> :-)
>
> __________________________________________________________________
> _________
> To unsubscribe, send email to [EMAIL PROTECTED] and include
> in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html