Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3270826
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T18:40:27+00:00 2026-05-17T18:40:27+00:00

I have to tell to the user in a web application(using struts) the download

  • 0

I have to tell to the user in a web application(using struts) the download speed.
What is the best way?

For the moment I simply have a .jsp filled with java scripts and I calculate the time it takes to the user to load this .jsp(I make this action 3 times and take the average speed). It worked ok when I had slow connection speed(under 1mb) but for bigger speed connection the values where wrong(to small; and if I put somebody from another country to test it-the connection speed results are even smaller).

The jsp size (taken with YSlow add-on from Mozilla) was little:70kb (gzipped) so I raised it to 260kb and still doesn’t show the right value.

I have to mention that I cannot download a file to the user and that is because I have to do a little test of compatibility of the application with the user network,browser..etc and the application means a lot of java script on the client side and the average size of a jsp file is 70kb(gzipped)<-that’s why I tried at start with this size.

Could you please give me an advice, I’ll appreciate

Luisa

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T18:40:27+00:00Added an answer on May 17, 2026 at 6:40 pm

    You think the best way to do it is use client side (javascript for example).
    If you want more specific data you need to do some downloads in the loop (100k, 1M, 5M).

    http://ditio.net/2008/08/06/detect-connection-speed-with-javascript/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a web application where I have to tell user that
I have a requirement for an ASP.NET web application whereby the same user is
I have a web application which uses LDAP for log in. I'm using Openid4Java
I have an .net web application where I am authenticating a user through another
So, I have an web-based application that is using the Wicket 1.4 framework, and
So we have a web application and we keep changing user interface. Sometimes user
I have such an AppleScript: tell application Firefox activate set the bounds of the
I have tried this but it doesn't work: tell application Preview set myfile to
I'm currently developing a new web application. This is the first time I'm using
I have some kind of web application - you pay for account and then

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.