How to know if the connection is available?

H

Hatter Jiang

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.
 
A

Andrew Thompson

Hatter said:
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.

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

Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-general/200711/1
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,164
Messages
2,570,898
Members
47,439
Latest member
shasuze

Latest Threads

Top