开发者

Map external directory outside tomcat installation in eclipse Dynamic Web Project

开发者 https://www.devze.com 2023-02-24 04:49 出处:网络
I want to map an external directory outside tomcat installation which stores 开发者_Go百科images in eclipse Dynamic Web Project\'s tomcat server. I have done that in tomcat directly by adding context

I want to map an external directory outside tomcat installation which stores 开发者_Go百科images in eclipse Dynamic Web Project's tomcat server. I have done that in tomcat directly by adding context tag in server.xml file. But when I done that in eclipse Dynamic Web Project's tomcat server.xml file. It is not working. I am using Tomcat 6.

My question is:

  • How to map an external directory outside tomcat installation in eclipse Dynamic Web Project?
  • Is it the good way to map external directory outside tomcat installation?

Thanks

Brajesh


Try a linked resource. Go to the folder in which you want your external directory to apprear. Now open the File menu -> New -> Folder.

Type in the name.

Click on "Advanced >>". Select "Link to alternate location (Linked Folder)". Browse to the external directory.

Click Finish.

That creates a link from your workspace to the external directory. It's possible that the plugin supports that.

0

精彩评论

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