This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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
Author

Socket Exception in servlet ??

Badal Kotecha
Ranch Hand

Joined: Sep 06, 2000
Posts: 42
Hi,
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
Badal...
maha anna
Ranch Hand

Joined: Jan 31, 2000
Posts: 1467
Badal,
Please refer to this discussion.
http://www.javaranch.com/ubb/Forum7/HTML/000634.html
regds
maha anna
 
GeeCON Prague 2014
 
subject: Socket Exception in servlet ??