tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Léa Massiot <lmhe...@orange.fr>
Subject Re: WebApps sharing uploaded files
Date Wed, 05 Oct 2011 17:12:39 GMT


chris wrote:
> 
> Be careful: if you undeploy the webapp, you will have all those files
> deleted by Tomcat.
> 
Ok. Thank you!

André wrote:
> 
> Thanks. Seen.  Lea, do you follow ? 
> 
Yes, thanks!

Ok. 
I do not properly understand the doc.:
http://tomcat.apache.org/tomcat-7.0-doc/config/context.html

1) "aliases" is an attribute. Is it an attribute of the "Context" element?

2) I have a "context.xml" file in "META-INF" in both "w1" and "w2". I have
tried:

2.A) context.xml

<?xml version='1.0' encoding='utf-8'?>
<Context aliases="/attachments=C:\somewhere_1\somewhere_2\somewhere_3">
  [...]
</Context>

2.B) I've created a "foo.txt" file in the directory
"C:\somewhere_1\somewhere_2\somewhere_3\"

2.C) test_download.html

<html>
  <head>
    <title>Test download</title>
  </head>
  <body>
     /attachments/foo.txt Foo.txt 
  </body>
</html>

When I click the link, I get a 404 error:

HTTP Status 404 - /attachments/foo.txt
type Status report
message /attachments/foo.txt
description The requested resource (/attachments/foo.txt) is not available.

What am I doing wrong?

Thank you and best regards,
--
Léa
-- 
View this message in context: http://old.nabble.com/WebApps-sharing-uploaded-files-tp32570911p32595832.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message