Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Connection Broken & Check??  RSS feed

Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • 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 ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!