You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by beyaRecords <uz...@beyarecords.com> on 2005/01/12 19:12:57 UTC
Infantile Download page question...
Hi,
i'm trying to create cocoon page which when accessed would enable me to
download, without the need for a prompt by the browser, specified files
within an jxt file. How would I fo about doing this??
regards
Uzo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: AW: AW: Infantile Download page question...
Posted by beyaRecords <uz...@beyarecords.com>.
On 15 Jan 2005, at 12:16, Alexander Zirl wrote:
> So how did you accomplish the task in the end. Via the zip method?
Hi Alexander,
yes I used the Zip method which was very easy to implement.
I call a jx file from my flowscript which wraps up all the tracks
associated with an Order.
<zip:archive
xmlns:zip="http://apache.org/cocoon/zip-archive/1.0"
xmlns:jx="http://apache.org/cocoon/templates/jx/1.0"
>
<zip:entry name="legalnote.txt" src="legalnote.txt"/>
<jx:forEach var="orderitem" items="${order.getOrderItems()}">
<zip:entry name="${orderitem.getStock().getItemFinal()}.mp3"
src="${orderitem.getStock().getItemFinal()}.mp3"/>
</jx:forEach>
</zip:archive>
Very nice ;-)
AW: AW: Infantile Download page question...
Posted by Alexander Zirl <al...@web.de>.
So how did you accomplish the task in the end. Via the zip method?
_____
Von: users-return-76174-alex.zirl=web.de@cocoon.apache.org
[mailto:users-return-76174-alex.zirl=web.de@cocoon.apache.org] Im Auftrag
von beyaRecords
Gesendet: Thursday, January 13, 2005 9:16 PM
An: users@cocoon.apache.org
Betreff: Re: AW: Infantile Download page question...
All sorted.. thanks for your help ;-)
On 13 Jan 2005, at 16:58, beyaRecords wrote:
Any ideas anybody?
On 13 Jan 2005, at 13:01, jiBeya wrote:
Hi,
in regards to my earlier question I have come across the zip serializer:
<zip:archive xmlns:zip="http://apache.org/cocoon/zip-archive/1.0">
<zip:entry name="foo.html" src="cocoon://dynFoo.html"/>
<zip:entry name="images/bar.jpeg" src="bar.jpeg"/>
<zip:entry name="index.html" serializer="html">
<html>
<head>
<title>Index page</title>
</head>
<body>
Please go <a href="foo.html">there</a>
</body>
</html>
</zip:entry>
</zip:archive>
Could someone explain to me what this code does as it makes no sense to me?
The process i want to implement is as follows:
1. Credit card payments for track( artists music) is accepted
2. The user is then sent an email confirming their purchase. In the email i
will provide a link which when clicked will enable the download of the zip
containing the purchased tracks.
The above have already been implemented, minus the link.
So is it possible once the link has been clicked in the email to start a
process which will dynamically zip up the purchased tracks and then download
the zip package? Or is it better to have a zip package already sitting on
the server, and clicking the email link will start downloading a zip which
already exists in a specific location?
Uzo
On 12 Jan 2005, at 21:04, Benedikt Heinen wrote:
I doubt that this would ever be possible to do in a pure HTTP environment,
because you won't be able to send all the files at once. Instead, why not
package the mp3's in a zip container, and transfer that one? Alternatively,
you could simply generate a download page listing the file locations.
However, the zip method seems to be a smarter idea.
Haven't tried it yet - only just thought about it - and it's surely ugly as
hell, but would it be possible to achieve the individual download by
creating a page with several frames, one with a link to return to the main
menu (or home page), and the every other frame pointing at one of the files
to download...
In theory, while the browser loads the page, it should ask you again and
again what to do with the files, right?
Benedikt
INFLUENCE, n. In politics, a visionary _quo_ given in exchange
for a substantial _quid_.
(Ambrose Bierce, The Devil's Dictionary)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: AW: Infantile Download page question...
Posted by beyaRecords <uz...@beyarecords.com>.
All sorted.. thanks for your help ;-)
On 13 Jan 2005, at 16:58, beyaRecords wrote:
> Any ideas anybody?
>
>
> On 13 Jan 2005, at 13:01, jiBeya wrote:
>
>> Hi,
>> in regards to my earlier question I have come across the zip
>> serializer:
>>
>> <zip:archive xmlns:zip="http://apache.org/cocoon/zip-archive/1.0">
>> <zip:entry name="foo.html" src="cocoon://dynFoo.html"/>
>> <zip:entry name="images/bar.jpeg" src="bar.jpeg"/>
>> <zip:entry name="index.html" serializer="html">
>> <html>
>> <head>
>> <title>Index page</title>
>> </head>
>> <body>
>> Please go <a href="foo.html">there</a>
>> </body>
>> </html>
>> </zip:entry>
>> </zip:archive>
>>
>> Could someone explain to me what this code does as it makes no sense
>> to me?
>>
>> The process i want to implement is as follows:
>>
>> 1. Credit card payments for track( artists music) is accepted
>> 2. The user is then sent an email confirming their purchase. In the
>> email i will provide a link which when clicked will enable the
>> download of the zip containing the purchased tracks.
>>
>> The above have already been implemented, minus the link.
>>
>> So is it possible once the link has been clicked in the email to
>> start a process which will dynamically zip up the purchased tracks
>> and then download the zip package? Or is it better to have a zip
>> package already sitting on the server, and clicking the email link
>> will start downloading a zip which already exists in a specific
>> location?
>>
>> Uzo
>>
>> On 12 Jan 2005, at 21:04, Benedikt Heinen wrote:
>>
>>>> I doubt that this would ever be possible to do in a pure HTTP
>>>> environment,
>>>> because you won't be able to send all the files at once. Instead,
>>>> why not
>>>> package the mp3's in a zip container, and transfer that one?
>>>> Alternatively,
>>>> you could simply generate a download page listing the file
>>>> locations.
>>>> However, the zip method seems to be a smarter idea.
>>>
>>> Haven't tried it yet - only just thought about it - and it's surely
>>> ugly as hell, but would it be possible to achieve the individual
>>> download by creating a page with several frames, one with a link to
>>> return to the main menu (or home page), and the every other frame
>>> pointing at one of the files to download...
>>>
>>> In theory, while the browser loads the page, it should ask you again
>>> and again what to do with the files, right?
>>>
>>>
>>>
>>>
>>> Benedikt
>>>
>>> INFLUENCE, n. In politics, a visionary _quo_ given in exchange
>>> for a substantial _quid_.
>>> (Ambrose Bierce, The Devil's Dictionary)
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>>
>>>
>>
>>
>
>
Re: AW: Infantile Download page question...
Posted by beyaRecords <uz...@beyarecords.com>.
Any ideas anybody?
On 13 Jan 2005, at 13:01, jiBeya wrote:
> Hi,
> in regards to my earlier question I have come across the zip
> serializer:
>
> <zip:archive xmlns:zip="http://apache.org/cocoon/zip-archive/1.0">
> <zip:entry name="foo.html" src="cocoon://dynFoo.html"/>
> <zip:entry name="images/bar.jpeg" src="bar.jpeg"/>
> <zip:entry name="index.html" serializer="html">
> <html>
> <head>
> <title>Index page</title>
> </head>
> <body>
> Please go <a href="foo.html">there</a>
> </body>
> </html>
> </zip:entry>
> </zip:archive>
>
> Could someone explain to me what this code does as it makes no sense
> to me?
>
> The process i want to implement is as follows:
>
> 1. Credit card payments for track( artists music) is accepted
> 2. The user is then sent an email confirming their purchase. In the
> email i will provide a link which when clicked will enable the
> download of the zip containing the purchased tracks.
>
> The above have already been implemented, minus the link.
>
> So is it possible once the link has been clicked in the email to start
> a process which will dynamically zip up the purchased tracks and then
> download the zip package? Or is it better to have a zip package
> already sitting on the server, and clicking the email link will start
> downloading a zip which already exists in a specific location?
>
> Uzo
>
> On 12 Jan 2005, at 21:04, Benedikt Heinen wrote:
>
>>> I doubt that this would ever be possible to do in a pure HTTP
>>> environment,
>>> because you won't be able to send all the files at once. Instead,
>>> why not
>>> package the mp3's in a zip container, and transfer that one?
>>> Alternatively,
>>> you could simply generate a download page listing the file locations.
>>> However, the zip method seems to be a smarter idea.
>>
>> Haven't tried it yet - only just thought about it - and it's surely
>> ugly as hell, but would it be possible to achieve the individual
>> download by creating a page with several frames, one with a link to
>> return to the main menu (or home page), and the every other frame
>> pointing at one of the files to download...
>>
>> In theory, while the browser loads the page, it should ask you again
>> and again what to do with the files, right?
>>
>>
>>
>>
>> Benedikt
>>
>> INFLUENCE, n. In politics, a visionary _quo_ given in exchange
>> for a substantial _quid_.
>> (Ambrose Bierce, The Devil's Dictionary)
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>>
>
>
Re: AW: Infantile Download page question...
Posted by jiBeya <in...@jibeya.com>.
Hi,
in regards to my earlier question I have come across the zip serializer:
<zip:archive xmlns:zip="http://apache.org/cocoon/zip-archive/1.0">
<zip:entry name="foo.html" src="cocoon://dynFoo.html"/>
<zip:entry name="images/bar.jpeg" src="bar.jpeg"/>
<zip:entry name="index.html" serializer="html">
<html>
<head>
<title>Index page</title>
</head>
<body>
Please go <a href="foo.html">there</a>
</body>
</html>
</zip:entry>
</zip:archive>
Could someone explain to me what this code does as it makes no sense to
me?
The process i want to implement is as follows:
1. Credit card payments for track( artists music) is accepted
2. The user is then sent an email confirming their purchase. In the
email i will provide a link which when clicked will enable the download
of the zip containing the purchased tracks.
The above have already been implemented, minus the link.
So is it possible once the link has been clicked in the email to start
a process which will dynamically zip up the purchased tracks and then
download the zip package? Or is it better to have a zip package already
sitting on the server, and clicking the email link will start
downloading a zip which already exists in a specific location?
Uzo
On 12 Jan 2005, at 21:04, Benedikt Heinen wrote:
>> I doubt that this would ever be possible to do in a pure HTTP
>> environment,
>> because you won't be able to send all the files at once. Instead, why
>> not
>> package the mp3's in a zip container, and transfer that one?
>> Alternatively,
>> you could simply generate a download page listing the file locations.
>> However, the zip method seems to be a smarter idea.
>
> Haven't tried it yet - only just thought about it - and it's surely
> ugly as hell, but would it be possible to achieve the individual
> download by creating a page with several frames, one with a link to
> return to the main menu (or home page), and the every other frame
> pointing at one of the files to download...
>
> In theory, while the browser loads the page, it should ask you again
> and again what to do with the files, right?
>
>
>
>
> Benedikt
>
> INFLUENCE, n. In politics, a visionary _quo_ given in exchange
> for a substantial _quid_.
> (Ambrose Bierce, The Devil's Dictionary)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
Re: AW: Infantile Download page question...
Posted by Benedikt Heinen <be...@icemark.net>.
> I doubt that this would ever be possible to do in a pure HTTP environment,
> because you won't be able to send all the files at once. Instead, why not
> package the mp3's in a zip container, and transfer that one? Alternatively,
> you could simply generate a download page listing the file locations.
> However, the zip method seems to be a smarter idea.
Haven't tried it yet - only just thought about it - and it's surely ugly
as hell, but would it be possible to achieve the individual download by
creating a page with several frames, one with a link to return to the
main menu (or home page), and the every other frame pointing at one of the
files to download...
In theory, while the browser loads the page, it should ask you again and
again what to do with the files, right?
Benedikt
INFLUENCE, n. In politics, a visionary _quo_ given in exchange
for a substantial _quid_.
(Ambrose Bierce, The Devil's Dictionary)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: AW: Infantile Download page question...
Posted by Benedikt Heinen <co...@ml.icemark.net>.
> The frames option would be a nightmare only for the fact that a user could
> purchase 15 tracks for which I would then need to have 15 frames!!??
As I pointed out myself, it would be ugly as hell, but it might just
work... (In terms of looks - would small iframes look better? Probably
still ugly, but maybe a slight improvement)
> Do any of you guys know how apple deliver music to customers via their iTunes
> store? Is it packaged into a zip folder or are the tracks downloaded
> individually?
Don't know abot iTunes - never used it. But a couple of years ago, emusic
used their own created download manager - a similar thing is done by
allofmp3.com. On both sites you could either download individual tracks,
or use their own download managers to automate the tasks.
Benedikt
INFLUENCE, n. In politics, a visionary _quo_ given in exchange
for a substantial _quid_.
(Ambrose Bierce, The Devil's Dictionary)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
RE: AW: Infantile Download page question...
Posted by Matthew Langham <ml...@s-und-n.de>.
> > Do any of you guys know how apple deliver music to
> customers via their
> > iTunes store? Is it packaged into a zip folder or are the tracks
> > downloaded individually?
>
> They don't do it with a web browser, they use iTunes. As long
> as you control the user agent, you can do anything you like.
>
iTunes music store looks like it's a browser interface - but it's not. Dave
Hyatt wrote about this
http://weblogs.mozillazine.org/hyatt/archives/2004_06.html
Or here: http://www.franklinmint.fm/blog/archives/000157.html
Matthew
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: AW: Infantile Download page question...
Posted by Ugo Cei <ug...@apache.org>.
Il giorno 13/gen/05, alle 00:01, beyaRecords ha scritto:
> Do any of you guys know how apple deliver music to customers via their
> iTunes store? Is it packaged into a zip folder or are the tracks
> downloaded individually?
They don't do it with a web browser, they use iTunes. As long as you
control the user agent, you can do anything you like.
Ugo
--
Ugo Cei - http://beblogging.com/blojsom/blog/
RE: AW: Infantile Download page question...
Posted by Mark Lundquist <ml...@wrinkledog.com>.
> From: beyaRecords [mailto:uzo@beyarecords.com]
>
> I did actually think about packaging the music files into a zip folder,
> which I know would be easy to do in cocoon, but thought that the actual
> size of the files (maybe 5 meg + each) would be a problem in terms of
> the time taken zipping them up and then downloading the zip bundle.
>
> The frames option would be a nightmare only for the fact that a user
> could purchase 15 tracks for which I would then need to have 15
> frames!!??
How about using some client-side Javascript?
-ml-
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: AW: Infantile Download page question...
Posted by beyaRecords <uz...@beyarecords.com>.
On 12 Jan 2005, at 22:38, Benedikt Heinen wrote:
>> Instead, why not
>> package the mp3's in a zip container, and transfer that one?
>> Alternatively,
>> you could simply generate a download page listing the file locations.
>> However, the zip method seems to be a smarter idea.
Ok,
I did actually think about packaging the music files into a zip folder,
which I know would be easy to do in cocoon, but thought that the actual
size of the files (maybe 5 meg + each) would be a problem in terms of
the time taken zipping them up and then downloading the zip bundle.
The frames option would be a nightmare only for the fact that a user
could purchase 15 tracks for which I would then need to have 15
frames!!??
Do any of you guys know how apple deliver music to customers via their
iTunes store? Is it packaged into a zip folder or are the tracks
downloaded individually?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: AW: Infantile Download page question...
Posted by Benedikt Heinen <co...@ml.icemark.net>.
> I doubt that this would ever be possible to do in a pure HTTP environment,
> because you won't be able to send all the files at once. Instead, why not
> package the mp3's in a zip container, and transfer that one? Alternatively,
> you could simply generate a download page listing the file locations.
> However, the zip method seems to be a smarter idea.
Haven't tried it yet - only just thought about it - and it's surely ugly
as hell, but would it be possible to achieve the individual download by
creating a page with several frames, one with a link to return to the
main menu (or home page), and the every other frame pointing at one of the
files to download...
In theory, while the browser loads the page, it should ask you again and
again what to do with the files, right?
Benedikt
INFLUENCE, n. In politics, a visionary _quo_ given in exchange
for a substantial _quid_.
(Ambrose Bierce, The Devil's Dictionary)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
AW: Infantile Download page question...
Posted by Alexander Zirl <al...@web.de>.
Hi Uzo,
I doubt that this would ever be possible to do in a pure HTTP environment,
because you won't be able to send all the files at once. Instead, why not
package the mp3's in a zip container, and transfer that one? Alternatively,
you could simply generate a download page listing the file locations.
However, the zip method seems to be a smarter idea.
Cheers,
Alexander Zirl
-----Ursprüngliche Nachricht-----
Von: users-return-76116-alex.zirl=web.de@cocoon.apache.org
[mailto:users-return-76116-alex.zirl=web.de@cocoon.apache.org] Im Auftrag
von beyaRecords
Gesendet: Wednesday, January 12, 2005 8:07 PM
An: users@cocoon.apache.org
Betreff: Re: Infantile Download page question...
Ok,
let me explain a bit better:
1. A client purchases a number of products, in this case music from my
artists
2. They enter their credit card details and are cleared.
3. Once cleared enable the use to download the music they have
purchased, the music format being mp3
So my idea was to re-direct the user to a page which would action the
process of downloading artist1.mp3, artist2.mp3 etc etc, whatever was
in the clients shopping basket.
I hope this helps
Uzo
On 12 Jan 2005, at 18:47, Mark Lundquist wrote:
>
>> From: beyaRecords [mailto:uzo@beyarecords.com]
>>
>> Hi,
>> i'm trying to create cocoon page which when accessed would enable me
>> to
>> download, without the need for a prompt by the browser,
>
> OK...
>
>> specified files
>> within an jxt file.
>
> What do you mean by that?
>
> cheers,
> -ml-
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Infantile Download page question...
Posted by beyaRecords <uz...@beyarecords.com>.
Ok,
let me explain a bit better:
1. A client purchases a number of products, in this case music from my
artists
2. They enter their credit card details and are cleared.
3. Once cleared enable the use to download the music they have
purchased, the music format being mp3
So my idea was to re-direct the user to a page which would action the
process of downloading artist1.mp3, artist2.mp3 etc etc, whatever was
in the clients shopping basket.
I hope this helps
Uzo
On 12 Jan 2005, at 18:47, Mark Lundquist wrote:
>
>> From: beyaRecords [mailto:uzo@beyarecords.com]
>>
>> Hi,
>> i'm trying to create cocoon page which when accessed would enable me
>> to
>> download, without the need for a prompt by the browser,
>
> OK...
>
>> specified files
>> within an jxt file.
>
> What do you mean by that?
>
> cheers,
> -ml-
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
RE: Infantile Download page question...
Posted by Mark Lundquist <ml...@wrinkledog.com>.
> From: beyaRecords [mailto:uzo@beyarecords.com]
>
> Hi,
> i'm trying to create cocoon page which when accessed would enable me to
> download, without the need for a prompt by the browser,
OK...
> specified files
> within an jxt file.
What do you mean by that?
cheers,
-ml-
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org