开发者

Share a folder in tomcat

How can I enable a folder to be accessable using a browser with tomcat 6 ?

I think I need to add a context to web.xml ?

I'm 开发者_JS百科trying - So when I navigate to http://localhost:8080/myfiles I expect to see the contents of c:\temp

Thanks


You need META-INF/context.xml, and there in the <Context> element set docBase to point to the desired directory.

See here the attributes to set in the Context element

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜