Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Connection Broken & Check??

Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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:-

[ May 21, 2003: Message edited by: Bikash Paul ]
Power corrupts. Absolute power xxxxxxxxxxxxxxxx is kinda neat.
We need your help - Coderanch server fundraiser
    Bookmark Topic Watch Topic
  • New Topic