GeeCON Prague 2014*
The moose likes Servlets and the fly likes Connection Broken & Check?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "Connection Broken & Check??" Watch "Connection Broken & Check??" New topic
Author

Connection Broken & Check??

Bikash Paul
Ranch Hand

Joined: Dec 04, 2001
Posts: 342
Hi all friends,
I am developing one uploading software Iam using Tomcat(servlet) and swing for that.My software working scenario is iam using Tomcat as a centralized server and my user from any computer using swing interface through my Tomcat server they can upload file on any computer on network supplying IP address of that computer in servlet as a parameter with the url of servlet.Now I want that if there is no connection with that computer on which server going to upload file as per user supplied IP address then server should give a error message to user and if connection broken in between file uploading then also server should give error message to user fot that i want to use JOption message box of swing[JOptionPane.showMessageDialog( null, "No Connection", "Error",JOptionPane.ERROR_MESSAGE);] in servlet file.Can any one plz guide me what will be that code for that.Below r my codes of servlet file:-

Regards
Bikash
[ May 21, 2003: Message edited by: Bikash Paul ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Connection Broken & Check??