aspose file tools*
The moose likes Servlets and the fly likes need help in handling HttpServletRequest Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "need help in handling HttpServletRequest" Watch "need help in handling HttpServletRequest" New topic
Author

need help in handling HttpServletRequest

Vrinda Gaddam
Greenhorn

Joined: Apr 09, 2011
Posts: 2
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

Joined: Jan 10, 2002
Posts: 60996
    
  65

What's triggering the new request on the client side? That's what needs to be controlled.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3825

And welcome to JavaRanch, Vrinda Gaddam


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Vrinda Gaddam
Greenhorn

Joined: Apr 09, 2011
Posts: 2
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

Joined: Jan 10, 2002
Posts: 60996
    
  65

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

Joined: Mar 22, 2000
Posts: 12769
    
    5
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

Joined: Jan 10, 2002
Posts: 60996
    
  65

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: need help in handling HttpServletRequest