Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2007

Tip: Looking for answers? Try searching our database.

How to know if the connection is available?

Thread view: 
Hatter Jiang - 03 Nov 2007 10:05 GMT
I am now using Tomcat 6 developing web application,

I have a problem that user can download PDF files from the web and the
file was created by programme, and it may cost a lot time.
So, I want to know that how can I know that the connection from client
was available ?

I think it is important for me.
Andrew Thompson - 03 Nov 2007 11:17 GMT
>I am now using Tomcat 6 developing web application,

That serves a site on the internet?

>I have a problem that user can download PDF files from the web and the
>file was created by programme, and it may cost a lot time.
>So, I want to know that how can I know that the connection from client
>was available ?

I do not quite understand.  If the user is 'at the site' and
clicks the 'download big PDF' link I think it is pretty obvious
they not only have an internet connection, but are currently
'connected and ready to receive data'.

The connection might be lost 90% of the way through
the download (e.g. when someone trips over the computer
power cable, and rips it from the wall), but there is nothing
you can do about that.

If it is such a big and important document, you might offer
a simple download manager for it, perhaps launched using
Java Web Start.

Signature

Andrew Thompson
http://www.athompson.info/andrew/



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.