Re: Stripes-users Digest, Vol 107, Issue 4

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Stripes-users Digest, Vol 107, Issue 4

Heather and Jon Turgeon
Hi Remi, I did consider rangeSupport but I read this in the docs as a reason why not to use range support.

"The input to this StreamingResolution was created on-demand, and retrieving in byte ranges would redo this process for every byte range. "

All my content is generated on demand, but my users often see failed downloads. I personally have only seen this when the internet connection is dropped (we are all on sailboats so our connections are either wifi or 3G). I guess my question is does anyone know the "best practice" for retrying dynamic content downloads? I am guessing it is something in my Javascript (I am using jquery and ajax to do the download) where I make sure the download was complete, if not try again for x numbers of times before giving up?

> From: [hidden email]

> Subject: Stripes-users Digest, Vol 107, Issue 4
> To: [hidden email]
> Date: Mon, 22 Jun 2015 12:00:53 +0000
>
> Send Stripes-users mailing list submissions to
> [hidden email]
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.sourceforge.net/lists/listinfo/stripes-users
> or, via email, send a message with subject or body 'help' to
> [hidden email]
>
> You can reach the person managing the list at
> [hidden email]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Stripes-users digest..."
>
>
> Today's Topics:
>
> 1. Re: File downloads, not really sure how to phrase question
> (Nestor Hernandez)
> 2. Re: File downloads, not really sure how to phrase question
> (VANKEISBELCK Remi)
> 3. Re: File downloads, not really sure how to phrase question
> (Nestor Hernandez)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 21 Jun 2015 11:39:56 -0500
> From: Nestor Hernandez <[hidden email]>
> Subject: Re: [Stripes-users] File downloads, not really sure how to
> phrase question
> To: Stripes Users List <[hidden email]>
> Message-ID:
> <CAMsyVLKAgNracwgYpqoENRZDy88SNPp8akeVC1c9=[hidden email]>
> Content-Type: text/plain; charset="utf-8"
>
> Hi Jon, I think your requirement has more to do with the way you manage
> your files than with Stripes.
>
> My advise that you split the file in multiple parts and then give option to
> the user to download those parts
> A quick google for 'split file java' send me to
> http://www.eecis.udel.edu/~trnka/CISC370-05J/code/FileSplitter/FileSplitter.java.
> Maybe you can adapt that code.
> El jun. 21, 2015 3:42 AM, "Heather and Jon Turgeon" <
> [hidden email]> escribi?:
>
> Hi all, my app builds files to download upon a user's request. Using
> StreamingResolution seems to work well most of the time. One problem I seem
> to be having is my site sort of supports users with internet connections
> that are frequently less than great (it is a site used by sailors cruising
> in remote areas of the world). I think what I need to implement is some
> sort of multi-part with checksum for these downloads in order to get these
> files to my users. Could someone point me in the right direction as to how
> to go about this using Stripes? I am guessing something on the client end
> will also need to be written?
>
> Jon
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Stripes-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 2
> Date: Mon, 22 Jun 2015 12:55:17 +0200
> From: VANKEISBELCK Remi <[hidden email]>
> Subject: Re: [Stripes-users] File downloads, not really sure how to
> phrase question
> To: Stripes Users List <[hidden email]>
> Message-ID:
> <CAG-EEs1CwFapEPoqtjz6=[hidden email]>
> Content-Type: text/plain; charset="utf-8"
>
> Hi
>
> Have you considered using range support ?
>
> http://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7233.html
>
> It allows a client to specify a range of the resource to be fetched, so
> that the resource can be downloaded in "chunks".
>
> Stripes does provide support for Ranges :
> http://stripes.sourceforge.net/docs/current/javadoc/net/sourceforge/stripes/action/StreamingResolution.html#setRangeSupport(boolean)
>
> Most media players / download tools (even the browsers) implement ranges
> client-side. For example, when you browser downloads a large file, the
> download may be interrupted several times without you even noticing it. The
> browser uses ranges to resume the download from where it last stopped.
>
> Cheers
>
> R?mi
>
>
>
> 2015-06-21 10:42 GMT+02:00 Heather and Jon Turgeon <
> [hidden email]>:
>
> > Hi all, my app builds files to download upon a user's request. Using
> > StreamingResolution seems to work well most of the time. One problem I seem
> > to be having is my site sort of supports users with internet connections
> > that are frequently less than great (it is a site used by sailors cruising
> > in remote areas of the world). I think what I need to implement is some
> > sort of multi-part with checksum for these downloads in order to get these
> > files to my users. Could someone point me in the right direction as to how
> > to go about this using Stripes? I am guessing something on the client end
> > will also need to be written?
> >
> > Jon
> >
> >
> > ------------------------------------------------------------------------------
> >
> > _______________________________________________
> > Stripes-users mailing list
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/stripes-users
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 3
> Date: Mon, 22 Jun 2015 06:01:18 -0500
> From: Nestor Hernandez <[hidden email]>
> Subject: Re: [Stripes-users] File downloads, not really sure how to
> phrase question
> To: Stripes Users List <[hidden email]>,
> [hidden email]
> Message-ID:
> <CAMsyVL+us8eRNrDxFvtTWbODQqPz889=[hidden email]>
> Content-Type: text/plain; charset="utf-8"
>
> I didn't noticed the range support. Great idea Remi
> El jun. 22, 2015 5:56 AM, "VANKEISBELCK Remi" <[hidden email]> escribi?:
>
> > Hi
> >
> > Have you considered using range support ?
> >
> > http://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7233.html
> >
> > It allows a client to specify a range of the resource to be fetched, so
> > that the resource can be downloaded in "chunks".
> >
> > Stripes does provide support for Ranges :
> >
> > http://stripes.sourceforge.net/docs/current/javadoc/net/sourceforge/stripes/action/StreamingResolution.html#setRangeSupport(boolean)
> >
> > Most media players / download tools (even the browsers) implement ranges
> > client-side. For example, when you browser downloads a large file, the
> > download may be interrupted several times without you even noticing it. The
> > browser uses ranges to resume the download from where it last stopped.
> >
> > Cheers
> >
> > R?mi
> >
> >
> >
> > 2015-06-21 10:42 GMT+02:00 Heather and Jon Turgeon <
> > [hidden email]>:
> >
> >> Hi all, my app builds files to download upon a user's request. Using
> >> StreamingResolution seems to work well most of the time. One problem I seem
> >> to be having is my site sort of supports users with internet connections
> >> that are frequently less than great (it is a site used by sailors cruising
> >> in remote areas of the world). I think what I need to implement is some
> >> sort of multi-part with checksum for these downloads in order to get these
> >> files to my users. Could someone point me in the right direction as to how
> >> to go about this using Stripes? I am guessing something on the client end
> >> will also need to be written?
> >>
> >> Jon
> >>
> >>
> >> ------------------------------------------------------------------------------
> >>
> >> _______________________________________________
> >> Stripes-users mailing list
> >> [hidden email]
> >> https://lists.sourceforge.net/lists/listinfo/stripes-users
> >>
> >>
> >
> >
> > ------------------------------------------------------------------------------
> > Monitor 25 network devices or servers for free with OpManager!
> > OpManager is web-based network management software that monitors
> > network devices and physical & virtual servers, alerts via email & sms
> > for fault. Monitor 25 devices for free with no restriction. Download now
> > http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
> > _______________________________________________
> > Stripes-users mailing list
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/stripes-users
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> ------------------------------------------------------------------------------
> Monitor 25 network devices or servers for free with OpManager!
> OpManager is web-based network management software that monitors
> network devices and physical & virtual servers, alerts via email & sms
> for fault. Monitor 25 devices for free with no restriction. Download now
> http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
>
> ------------------------------
>
> _______________________________________________
> Stripes-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
> End of Stripes-users Digest, Vol 107, Issue 4
> *********************************************

------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors
network devices and physical & virtual servers, alerts via email & sms
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
Stripes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users
Reply | Threaded
Open this post in threaded view
|

Re: Stripes-users Digest, Vol 107, Issue 4

Nestor Hernandez

Jon,I think the solution for content in demand is that you create a temporary file with that content. Then show to the user a link pointing to an ActionBean that will stream the previously generated file.

Cheers

El jun. 22, 2015 6:18 PM, "Heather and Jon Turgeon" <[hidden email]> escribió:
Hi Remi, I did consider rangeSupport but I read this in the docs as a reason why not to use range support.

"The input to this StreamingResolution was created on-demand, and retrieving in byte ranges would redo this process for every byte range. "

All my content is generated on demand, but my users often see failed downloads. I personally have only seen this when the internet connection is dropped (we are all on sailboats so our connections are either wifi or 3G). I guess my question is does anyone know the "best practice" for retrying dynamic content downloads? I am guessing it is something in my Javascript (I am using jquery and ajax to do the download) where I make sure the download was complete, if not try again for x numbers of times before giving up?

> From: [hidden email]

> Subject: Stripes-users Digest, Vol 107, Issue 4
> To: [hidden email]
> Date: Mon, 22 Jun 2015 12:00:53 +0000
>
> Send Stripes-users mailing list submissions to
> [hidden email]
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.sourceforge.net/lists/listinfo/stripes-users
> or, via email, send a message with subject or body 'help' to
> [hidden email]
>
> You can reach the person managing the list at
> [hidden email]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Stripes-users digest..."
>
>
> Today's Topics:
>
> 1. Re: File downloads, not really sure how to phrase question
> (Nestor Hernandez)
> 2. Re: File downloads, not really sure how to phrase question
> (VANKEISBELCK Remi)
> 3. Re: File downloads, not really sure how to phrase question
> (Nestor Hernandez)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 21 Jun 2015 11:39:56 -0500
> From: Nestor Hernandez <[hidden email]>
> Subject: Re: [Stripes-users] File downloads, not really sure how to
> phrase question
> To: Stripes Users List <[hidden email]>
> Message-ID:
> <CAMsyVLKAgNracwgYpqoENRZDy88SNPp8akeVC1c9=[hidden email]>
> Content-Type: text/plain; charset="utf-8"
>
> Hi Jon, I think your requirement has more to do with the way you manage
> your files than with Stripes.
>
> My advise that you split the file in multiple parts and then give option to
> the user to download those parts
> A quick google for 'split file java' send me to
> http://www.eecis.udel.edu/~trnka/CISC370-05J/code/FileSplitter/FileSplitter.java.
> Maybe you can adapt that code.
> El jun. 21, 2015 3:42 AM, "Heather and Jon Turgeon" <
> [hidden email]> escribi?:
>
> Hi all, my app builds files to download upon a user's request. Using
> StreamingResolution seems to work well most of the time. One problem I seem
> to be having is my site sort of supports users with internet connections
> that are frequently less than great (it is a site used by sailors cruising
> in remote areas of the world). I think what I need to implement is some
> sort of multi-part with checksum for these downloads in order to get these
> files to my users. Could someone point me in the right direction as to how
> to go about this using Stripes? I am guessing something on the client end
> will also need to be written?
>
> Jon
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Stripes-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 2
> Date: Mon, 22 Jun 2015 12:55:17 +0200
> From: VANKEISBELCK Remi <[hidden email]>
> Subject: Re: [Stripes-users] File downloads, not really sure how to
> phrase question
> To: Stripes Users List <[hidden email]>
> Message-ID:
> <CAG-EEs1CwFapEPoqtjz6=[hidden email]>
> Content-Type: text/plain; charset="utf-8"
>
> Hi
>
> Have you considered using range support ?
>
> http://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7233.html
>
> It allows a client to specify a range of the resource to be fetched, so
> that the resource can be downloaded in "chunks".
>
> Stripes does provide support for Ranges :
> http://stripes.sourceforge.net/docs/current/javadoc/net/sourceforge/stripes/action/StreamingResolution.html#setRangeSupport(boolean)
>
> Most media players / download tools (even the browsers) implement ranges
> client-side. For example, when you browser downloads a large file, the
> download may be interrupted several times without you even noticing it. The
> browser uses ranges to resume the download from where it last stopped.
>
> Cheers
>
> R?mi
>
>
>
> 2015-06-21 10:42 GMT+02:00 Heather and Jon Turgeon <
> [hidden email]>:
>
> > Hi all, my app builds files to download upon a user's request. Using
> > StreamingResolution seems to work well most of the time. One problem I seem
> > to be having is my site sort of supports users with internet connections
> > that are frequently less than great (it is a site used by sailors cruising
> > in remote areas of the world). I think what I need to implement is some
> > sort of multi-part with checksum for these downloads in order to get these
> > files to my users. Could someone point me in the right direction as to how
> > to go about this using Stripes? I am guessing something on the client end
> > will also need to be written?
> >
> > Jon
> >
> >
> > ------------------------------------------------------------------------------
> >
> > _______________________________________________
> > Stripes-users mailing list
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/stripes-users
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 3
> Date: Mon, 22 Jun 2015 06:01:18 -0500
> From: Nestor Hernandez <[hidden email]>
> Subject: Re: [Stripes-users] File downloads, not really sure how to
> phrase question
> To: Stripes Users List <[hidden email]>,
> [hidden email]
> Message-ID:
> <CAMsyVL+us8eRNrDxFvtTWbODQqPz889=[hidden email]>
> Content-Type: text/plain; charset="utf-8"
>
> I didn't noticed the range support. Great idea Remi
> El jun. 22, 2015 5:56 AM, "VANKEISBELCK Remi" <[hidden email]> escribi?:
>
> > Hi
> >
> > Have you considered using range support ?
> >
> > http://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7233.html
> >
> > It allows a client to specify a range of the resource to be fetched, so
> > that the resource can be downloaded in "chunks".
> >
> > Stripes does provide support for Ranges :
> >
> > http://stripes.sourceforge.net/docs/current/javadoc/net/sourceforge/stripes/action/StreamingResolution.html#setRangeSupport(boolean)
> >
> > Most media players / download tools (even the browsers) implement ranges
> > client-side. For example, when you browser downloads a large file, the
> > download may be interrupted several times without you even noticing it. The
> > browser uses ranges to resume the download from where it last stopped.
> >
> > Cheers
> >
> > R?mi
> >
> >
> >
> > 2015-06-21 10:42 GMT+02:00 Heather and Jon Turgeon <
> > [hidden email]>:
> >
> >> Hi all, my app builds files to download upon a user's request. Using
> >> StreamingResolution seems to work well most of the time. One problem I seem
> >> to be having is my site sort of supports users with internet connections
> >> that are frequently less than great (it is a site used by sailors cruising
> >> in remote areas of the world). I think what I need to implement is some
> >> sort of multi-part with checksum for these downloads in order to get these
> >> files to my users. Could someone point me in the right direction as to how
> >> to go about this using Stripes? I am guessing something on the client end
> >> will also need to be written?
> >>
> >> Jon
> >>
> >>
> >> ------------------------------------------------------------------------------
> >>
> >> _______________________________________________
> >> Stripes-users mailing list
> >> [hidden email]
> >> https://lists.sourceforge.net/lists/listinfo/stripes-users
> >>
> >>
> >
> >
> > ------------------------------------------------------------------------------
> > Monitor 25 network devices or servers for free with OpManager!
> > OpManager is web-based network management software that monitors
> > network devices and physical & virtual servers, alerts via email & sms
> > for fault. Monitor 25 devices for free with no restriction. Download now
> > http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
> > _______________________________________________
> > Stripes-users mailing list
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/stripes-users
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> ------------------------------------------------------------------------------
> Monitor 25 network devices or servers for free with OpManager!
> OpManager is web-based network management software that monitors
> network devices and physical & virtual servers, alerts via email & sms
> for fault. Monitor 25 devices for free with no restriction. Download now
> http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
>
> ------------------------------
>
> _______________________________________________
> Stripes-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
> End of Stripes-users Digest, Vol 107, Issue 4
> *********************************************

------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors
network devices and physical & virtual servers, alerts via email & sms
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
Stripes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users


------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors
network devices and physical & virtual servers, alerts via email & sms
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
Stripes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users
Reply | Threaded
Open this post in threaded view
|

Re: Stripes-users Digest, Vol 107, Issue 4

VANKEISBELCK Remi
In reply to this post by Heather and Jon Turgeon
The excerpt from the doc is when you *cannot* use ranges. 

The best practise for resuming downloads is range. There ain't no alternative AFAIK in the HTTP protocol.

From the spec :

"
Hypertext Transfer Protocol (HTTP) clients often encounter
   interrupted data transfers as a result of canceled requests or
   dropped connections.  When a client has stored a partial
   representation, it is desirable to request the remainder of that
   representation in a subsequent request rather than transfer the
   entire representation
"

And from the Stripes docs :

"
Reasons for enabling byte range serving:
...
  • Supporting resuming download managers
"

I'm pretty much sure that's what you want...

Cheers

Rémi

2015-06-23 1:17 GMT+02:00 Heather and Jon Turgeon <[hidden email]>:
Hi Remi, I did consider rangeSupport but I read this in the docs as a reason why not to use range support.

"The input to this StreamingResolution was created on-demand, and retrieving in byte ranges would redo this process for every byte range. "

All my content is generated on demand, but my users often see failed downloads. I personally have only seen this when the internet connection is dropped (we are all on sailboats so our connections are either wifi or 3G). I guess my question is does anyone know the "best practice" for retrying dynamic content downloads? I am guessing it is something in my Javascript (I am using jquery and ajax to do the download) where I make sure the download was complete, if not try again for x numbers of times before giving up?

> From: [hidden email]

> Subject: Stripes-users Digest, Vol 107, Issue 4
> To: [hidden email]
> Date: Mon, 22 Jun 2015 12:00:53 +0000
>
> Send Stripes-users mailing list submissions to
> [hidden email]
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.sourceforge.net/lists/listinfo/stripes-users
> or, via email, send a message with subject or body 'help' to
> [hidden email]
>
> You can reach the person managing the list at
> [hidden email]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Stripes-users digest..."
>
>
> Today's Topics:
>
> 1. Re: File downloads, not really sure how to phrase question
> (Nestor Hernandez)
> 2. Re: File downloads, not really sure how to phrase question
> (VANKEISBELCK Remi)
> 3. Re: File downloads, not really sure how to phrase question
> (Nestor Hernandez)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 21 Jun 2015 11:39:56 -0500
> From: Nestor Hernandez <[hidden email]>
> Subject: Re: [Stripes-users] File downloads, not really sure how to
> phrase question
> To: Stripes Users List <[hidden email]>
> Message-ID:
> <CAMsyVLKAgNracwgYpqoENRZDy88SNPp8akeVC1c9=[hidden email]>
> Content-Type: text/plain; charset="utf-8"
>
> Hi Jon, I think your requirement has more to do with the way you manage
> your files than with Stripes.
>
> My advise that you split the file in multiple parts and then give option to
> the user to download those parts
> A quick google for 'split file java' send me to
> http://www.eecis.udel.edu/~trnka/CISC370-05J/code/FileSplitter/FileSplitter.java.
> Maybe you can adapt that code.
> El jun. 21, 2015 3:42 AM, "Heather and Jon Turgeon" <
> [hidden email]> escribi?:
>
> Hi all, my app builds files to download upon a user's request. Using
> StreamingResolution seems to work well most of the time. One problem I seem
> to be having is my site sort of supports users with internet connections
> that are frequently less than great (it is a site used by sailors cruising
> in remote areas of the world). I think what I need to implement is some
> sort of multi-part with checksum for these downloads in order to get these
> files to my users. Could someone point me in the right direction as to how
> to go about this using Stripes? I am guessing something on the client end
> will also need to be written?
>
> Jon
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Stripes-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 2
> Date: Mon, 22 Jun 2015 12:55:17 +0200
> From: VANKEISBELCK Remi <[hidden email]>
> Subject: Re: [Stripes-users] File downloads, not really sure how to
> phrase question
> To: Stripes Users List <[hidden email]>
> Message-ID:
> <CAG-EEs1CwFapEPoqtjz6=[hidden email]>
> Content-Type: text/plain; charset="utf-8"
>
> Hi
>
> Have you considered using range support ?
>
> http://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7233.html
>
> It allows a client to specify a range of the resource to be fetched, so
> that the resource can be downloaded in "chunks".
>
> Stripes does provide support for Ranges :
> http://stripes.sourceforge.net/docs/current/javadoc/net/sourceforge/stripes/action/StreamingResolution.html#setRangeSupport(boolean)
>
> Most media players / download tools (even the browsers) implement ranges
> client-side. For example, when you browser downloads a large file, the
> download may be interrupted several times without you even noticing it. The
> browser uses ranges to resume the download from where it last stopped.
>
> Cheers
>
> R?mi
>
>
>
> 2015-06-21 10:42 GMT+02:00 Heather and Jon Turgeon <
> [hidden email]>:
>
> > Hi all, my app builds files to download upon a user's request. Using
> > StreamingResolution seems to work well most of the time. One problem I seem
> > to be having is my site sort of supports users with internet connections
> > that are frequently less than great (it is a site used by sailors cruising
> > in remote areas of the world). I think what I need to implement is some
> > sort of multi-part with checksum for these downloads in order to get these
> > files to my users. Could someone point me in the right direction as to how
> > to go about this using Stripes? I am guessing something on the client end
> > will also need to be written?
> >
> > Jon
> >
> >
> > ------------------------------------------------------------------------------
> >
> > _______________________________________________
> > Stripes-users mailing list
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/stripes-users
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 3
> Date: Mon, 22 Jun 2015 06:01:18 -0500
> From: Nestor Hernandez <[hidden email]>
> Subject: Re: [Stripes-users] File downloads, not really sure how to
> phrase question
> To: Stripes Users List <[hidden email]>,
> [hidden email]
> Message-ID:
> <CAMsyVL+us8eRNrDxFvtTWbODQqPz889=[hidden email]>
> Content-Type: text/plain; charset="utf-8"
>
> I didn't noticed the range support. Great idea Remi
> El jun. 22, 2015 5:56 AM, "VANKEISBELCK Remi" <[hidden email]> escribi?:
>
> > Hi
> >
> > Have you considered using range support ?
> >
> > http://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7233.html
> >
> > It allows a client to specify a range of the resource to be fetched, so
> > that the resource can be downloaded in "chunks".
> >
> > Stripes does provide support for Ranges :
> >
> > http://stripes.sourceforge.net/docs/current/javadoc/net/sourceforge/stripes/action/StreamingResolution.html#setRangeSupport(boolean)
> >
> > Most media players / download tools (even the browsers) implement ranges
> > client-side. For example, when you browser downloads a large file, the
> > download may be interrupted several times without you even noticing it. The
> > browser uses ranges to resume the download from where it last stopped.
> >
> > Cheers
> >
> > R?mi
> >
> >
> >
> > 2015-06-21 10:42 GMT+02:00 Heather and Jon Turgeon <
> > [hidden email]>:
> >
> >> Hi all, my app builds files to download upon a user's request. Using
> >> StreamingResolution seems to work well most of the time. One problem I seem
> >> to be having is my site sort of supports users with internet connections
> >> that are frequently less than great (it is a site used by sailors cruising
> >> in remote areas of the world). I think what I need to implement is some
> >> sort of multi-part with checksum for these downloads in order to get these
> >> files to my users. Could someone point me in the right direction as to how
> >> to go about this using Stripes? I am guessing something on the client end
> >> will also need to be written?
> >>
> >> Jon
> >>
> >>
> >> ------------------------------------------------------------------------------
> >>
> >> _______________________________________________
> >> Stripes-users mailing list
> >> [hidden email]
> >> https://lists.sourceforge.net/lists/listinfo/stripes-users
> >>
> >>
> >
> >
> > ------------------------------------------------------------------------------
> > Monitor 25 network devices or servers for free with OpManager!
> > OpManager is web-based network management software that monitors
> > network devices and physical & virtual servers, alerts via email & sms
> > for fault. Monitor 25 devices for free with no restriction. Download now
> > http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
> > _______________________________________________
> > Stripes-users mailing list
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/stripes-users
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> ------------------------------------------------------------------------------
> Monitor 25 network devices or servers for free with OpManager!
> OpManager is web-based network management software that monitors
> network devices and physical & virtual servers, alerts via email & sms
> for fault. Monitor 25 devices for free with no restriction. Download now
> http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
>
> ------------------------------
>
> _______________________________________________
> Stripes-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
> End of Stripes-users Digest, Vol 107, Issue 4
> *********************************************

------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors
network devices and physical & virtual servers, alerts via email & sms
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
Stripes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users



------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors
network devices and physical & virtual servers, alerts via email & sms
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
Stripes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users
Reply | Threaded
Open this post in threaded view
|

Re: Stripes-users Digest, Vol 107, Issue 4

Nestor Hernandez
In reply to this post by Nestor Hernandez

Remember that the ActionBean must stream the file using range support

El jun. 22, 2015 7:30 PM, "Nestor Hernandez" <[hidden email]> escribió:

Jon,I think the solution for content in demand is that you create a temporary file with that content. Then show to the user a link pointing to an ActionBean that will stream the previously generated file.

Cheers

El jun. 22, 2015 6:18 PM, "Heather and Jon Turgeon" <[hidden email]> escribió:
Hi Remi, I did consider rangeSupport but I read this in the docs as a reason why not to use range support.

"The input to this StreamingResolution was created on-demand, and retrieving in byte ranges would redo this process for every byte range. "

All my content is generated on demand, but my users often see failed downloads. I personally have only seen this when the internet connection is dropped (we are all on sailboats so our connections are either wifi or 3G). I guess my question is does anyone know the "best practice" for retrying dynamic content downloads? I am guessing it is something in my Javascript (I am using jquery and ajax to do the download) where I make sure the download was complete, if not try again for x numbers of times before giving up?

> From: [hidden email]

> Subject: Stripes-users Digest, Vol 107, Issue 4
> To: [hidden email]
> Date: Mon, 22 Jun 2015 12:00:53 +0000
>
> Send Stripes-users mailing list submissions to
> [hidden email]
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.sourceforge.net/lists/listinfo/stripes-users
> or, via email, send a message with subject or body 'help' to
> [hidden email]
>
> You can reach the person managing the list at
> [hidden email]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Stripes-users digest..."
>
>
> Today's Topics:
>
> 1. Re: File downloads, not really sure how to phrase question
> (Nestor Hernandez)
> 2. Re: File downloads, not really sure how to phrase question
> (VANKEISBELCK Remi)
> 3. Re: File downloads, not really sure how to phrase question
> (Nestor Hernandez)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 21 Jun 2015 11:39:56 -0500
> From: Nestor Hernandez <[hidden email]>
> Subject: Re: [Stripes-users] File downloads, not really sure how to
> phrase question
> To: Stripes Users List <[hidden email]>
> Message-ID:
> <CAMsyVLKAgNracwgYpqoENRZDy88SNPp8akeVC1c9=[hidden email]>
> Content-Type: text/plain; charset="utf-8"
>
> Hi Jon, I think your requirement has more to do with the way you manage
> your files than with Stripes.
>
> My advise that you split the file in multiple parts and then give option to
> the user to download those parts
> A quick google for 'split file java' send me to
> http://www.eecis.udel.edu/~trnka/CISC370-05J/code/FileSplitter/FileSplitter.java.
> Maybe you can adapt that code.
> El jun. 21, 2015 3:42 AM, "Heather and Jon Turgeon" <
> [hidden email]> escribi?:
>
> Hi all, my app builds files to download upon a user's request. Using
> StreamingResolution seems to work well most of the time. One problem I seem
> to be having is my site sort of supports users with internet connections
> that are frequently less than great (it is a site used by sailors cruising
> in remote areas of the world). I think what I need to implement is some
> sort of multi-part with checksum for these downloads in order to get these
> files to my users. Could someone point me in the right direction as to how
> to go about this using Stripes? I am guessing something on the client end
> will also need to be written?
>
> Jon
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Stripes-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 2
> Date: Mon, 22 Jun 2015 12:55:17 +0200
> From: VANKEISBELCK Remi <[hidden email]>
> Subject: Re: [Stripes-users] File downloads, not really sure how to
> phrase question
> To: Stripes Users List <[hidden email]>
> Message-ID:
> <CAG-EEs1CwFapEPoqtjz6=[hidden email]>
> Content-Type: text/plain; charset="utf-8"
>
> Hi
>
> Have you considered using range support ?
>
> http://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7233.html
>
> It allows a client to specify a range of the resource to be fetched, so
> that the resource can be downloaded in "chunks".
>
> Stripes does provide support for Ranges :
> http://stripes.sourceforge.net/docs/current/javadoc/net/sourceforge/stripes/action/StreamingResolution.html#setRangeSupport(boolean)
>
> Most media players / download tools (even the browsers) implement ranges
> client-side. For example, when you browser downloads a large file, the
> download may be interrupted several times without you even noticing it. The
> browser uses ranges to resume the download from where it last stopped.
>
> Cheers
>
> R?mi
>
>
>
> 2015-06-21 10:42 GMT+02:00 Heather and Jon Turgeon <
> [hidden email]>:
>
> > Hi all, my app builds files to download upon a user's request. Using
> > StreamingResolution seems to work well most of the time. One problem I seem
> > to be having is my site sort of supports users with internet connections
> > that are frequently less than great (it is a site used by sailors cruising
> > in remote areas of the world). I think what I need to implement is some
> > sort of multi-part with checksum for these downloads in order to get these
> > files to my users. Could someone point me in the right direction as to how
> > to go about this using Stripes? I am guessing something on the client end
> > will also need to be written?
> >
> > Jon
> >
> >
> > ------------------------------------------------------------------------------
> >
> > _______________________________________________
> > Stripes-users mailing list
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/stripes-users
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 3
> Date: Mon, 22 Jun 2015 06:01:18 -0500
> From: Nestor Hernandez <[hidden email]>
> Subject: Re: [Stripes-users] File downloads, not really sure how to
> phrase question
> To: Stripes Users List <[hidden email]>,
> [hidden email]
> Message-ID:
> <CAMsyVL+us8eRNrDxFvtTWbODQqPz889=[hidden email]>
> Content-Type: text/plain; charset="utf-8"
>
> I didn't noticed the range support. Great idea Remi
> El jun. 22, 2015 5:56 AM, "VANKEISBELCK Remi" <[hidden email]> escribi?:
>
> > Hi
> >
> > Have you considered using range support ?
> >
> > http://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7233.html
> >
> > It allows a client to specify a range of the resource to be fetched, so
> > that the resource can be downloaded in "chunks".
> >
> > Stripes does provide support for Ranges :
> >
> > http://stripes.sourceforge.net/docs/current/javadoc/net/sourceforge/stripes/action/StreamingResolution.html#setRangeSupport(boolean)
> >
> > Most media players / download tools (even the browsers) implement ranges
> > client-side. For example, when you browser downloads a large file, the
> > download may be interrupted several times without you even noticing it. The
> > browser uses ranges to resume the download from where it last stopped.
> >
> > Cheers
> >
> > R?mi
> >
> >
> >
> > 2015-06-21 10:42 GMT+02:00 Heather and Jon Turgeon <
> > [hidden email]>:
> >
> >> Hi all, my app builds files to download upon a user's request. Using
> >> StreamingResolution seems to work well most of the time. One problem I seem
> >> to be having is my site sort of supports users with internet connections
> >> that are frequently less than great (it is a site used by sailors cruising
> >> in remote areas of the world). I think what I need to implement is some
> >> sort of multi-part with checksum for these downloads in order to get these
> >> files to my users. Could someone point me in the right direction as to how
> >> to go about this using Stripes? I am guessing something on the client end
> >> will also need to be written?
> >>
> >> Jon
> >>
> >>
> >> ------------------------------------------------------------------------------
> >>
> >> _______________________________________________
> >> Stripes-users mailing list
> >> [hidden email]
> >> https://lists.sourceforge.net/lists/listinfo/stripes-users
> >>
> >>
> >
> >
> > ------------------------------------------------------------------------------
> > Monitor 25 network devices or servers for free with OpManager!
> > OpManager is web-based network management software that monitors
> > network devices and physical & virtual servers, alerts via email & sms
> > for fault. Monitor 25 devices for free with no restriction. Download now
> > http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
> > _______________________________________________
> > Stripes-users mailing list
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/stripes-users
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> ------------------------------------------------------------------------------
> Monitor 25 network devices or servers for free with OpManager!
> OpManager is web-based network management software that monitors
> network devices and physical & virtual servers, alerts via email & sms
> for fault. Monitor 25 devices for free with no restriction. Download now
> http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
>
> ------------------------------
>
> _______________________________________________
> Stripes-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
> End of Stripes-users Digest, Vol 107, Issue 4
> *********************************************

------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors
network devices and physical & virtual servers, alerts via email & sms
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
Stripes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users


------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors
network devices and physical & virtual servers, alerts via email & sms
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
Stripes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users