I think you are right, but it seems to be more complicated than I initially
thought.

In the Cocoon2 sitemap.xmap, I can designate relationships. I noticed that
on my *.doc files, it does not matter if I have a mime-type specified or
not.

In the Tomcat map.xml file, you can also define what applications go with
what extensions. Just for fun, I associated *.bin with Word and Word came
up. 

Finally, there is the lovely Windows file association which I recently was
reminded about. Even if made the definition for *.doc files in sitemap.xmap
and map.xml the same as the *.bin files, Word would still load.

I could not find the "extras" menu, but any application changes would be out
of my scope. I would not be able to change the application settings for all
users who access my web site. I guess that is why most Word documents are
compressed as ZIP files. And here I thought it was just to save space and
not ensure a download prompt...

As for the priorities, I suspect that first is Cocoon, then Tomcat and
finally Windows.

But thanks for your reply, it did help me figure out this out a litte
better.

> -----Original Message-----
> From: Jörg Heinicke [mailto:[EMAIL PROTECTED]]
> Sent: October 3, 2001 8:47 PM
> To: [EMAIL PROTECTED]
> Subject: Re: How to have prompt for download?
> 
> 
> I think, this is a problem of Windows not of Cocoon. Because 
> I have a German
> version of Windows I can't tell you the right way. I try to 
> explain it:
> 
> In the explorer we have a menu named 'Extras', it should be 
> named similarly
> in English, there 'directory options', 'file types', search 
> for '.doc',
> modify the options of '.doc', there is an option meaning 
> 'confirm opening
> before download', this must be switched to yes.
> 
> Hope this helps,
> 
> Joerg
> 
> ----- Original Message -----
> From: "Hewko, Doug" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, October 03, 2001 8:18 PM
> Subject: How to have prompt for download?
> 
> 
> > How would you set up Cocoon2 to download a file instead of 
> opening an
> > application for it? In my sitemap.xml, I have some word 
> documents defined
> as
> > follows so I can put them all in one physical path.
> >    <map:match pattern="_documents/**.doc">
> >     <map:read src="xmldocs/{1}.doc" mime-type="application/msword"/>
> >    </map:match>
> >
> > What would I need to change if I want Windows to give the 
> "open" or "save"
> > prompt instead of automatically opening Word?
> 
> 
> 
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to