• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

need help in handling HttpServletRequest

 
Vrinda Gaddam
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am having an application running in tomcat5 and developed using java6. I have a scenario where the user would click a button to download some content. This download takes more than 10 min depending on the amount of data requested.
There are some configuration settings on our client side which is reloading the browser every 3 min.
So in every 3 min this download is getting triggered.
I kept some checks to see if the download is finished, if not I am not starting the download. But the new request kills the existing download request.

Is there any way I can control, so that the a new request will not be triggered until the current request is finished.

Please suggest.

Regards,
Vrinda
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64990
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's triggering the new request on the client side? That's what needs to be controlled.
 
Vijitha Kumara
Bartender
Posts: 3913
9
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And welcome to JavaRanch, Vrinda Gaddam
 
Vrinda Gaddam
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply..But we have no control on the client side. So, looking if this can be handled from the application itself?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64990
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, if the client side drops the connection there is nothing that the server can do.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are some configuration settings on our client side which is reloading the browser every 3 min.


Reloading what?? Surely you don't mean restarting the browser! What do you mean?

Bill
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64990
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suspect either a meta tag causing the page to periodically refresh, or some other timer.

If this is the case, the browser will drop the connection and there is nothing that the server can do about it. The approach will need to be re-thought.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic