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.
精彩评论