tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: Serving static content using embedded tomcat 7
Date Wed, 08 Feb 2012 08:47:19 GMT
On 08/02/2012 08:40, sanu wrote:
> Thank you. 
> 
> I just did that. Here's what I have :
> 
> StandardContext context = (StandardContext)
>                 tomcat.addContext(null, "", <path to the static resource
> directory");
> 
> This doesn't seem to work.

You haven't told us:
- exact Apache Tomcat version
- what the path to the resources is
- how the other contexts are referring to these resources

In addition to answering the questions above, I'd strongly recommend
reading [1]. It will help you write better questions which in turn will
get you more useful answers.

Mark

[1] http://catb.org/esr/faqs/smart-questions.html

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


Mime
View raw message