File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Socket Exception in servlet ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Socket Exception in servlet ??" Watch "Socket Exception in servlet ??" New topic

Socket Exception in servlet ??

Badal Kotecha
Ranch Hand

Joined: Sep 06, 2000
Posts: 42
I have made a simple client server application wherein I am accepting a username and password and in servlet I am checking it with the database.
Problem : My client when passes user name and password from a html client to the servlet and immediately presses stop button before getting the complete response from the server, At the server side while executing the clients request it throws Socket Exception. Although I have placed my whole code of doPost method in try catch block and handled the exception then why it is not handling that exception and why the Socket Exception is getting invoked ??
Please Write in detail
Thanking u in advance
maha anna
Ranch Hand

Joined: Jan 31, 2000
Posts: 1467
Please refer to this discussion.
maha anna
I agree. Here's the link:
subject: Socket Exception in servlet ??
It's not a secret anymore!