Virtual Document Directories
Using the FileFinderServlet you can set up virtual document directories so
that you can keep your documents in your module directory structure. This comes
from chapter 5 of the programmers guide.
Virtual File Translation
When the FileFinderServlet is performing path translation, it can also translate a list of
virtual directories. A virtual directory allows you to map all pathInfos that start with a
particular path prefix to a separate directory on your file system. The virtual directories
are specified in FileFinderServlet by the virtualDirectoryMap property.
This property
contains a list of mappings of the form: /pathInfoPrefix=/fileSystemPath.
For example (\atg\dynamo\servlet\pipeline\FileFinderServlet.properties) :
virtualDirectoryMap=/MyModule={atg.dynamo.root}/MyModule/docs
You should set the virtual directories if you've set alwaysTranslate=true or if you will be
translating paths either via the request.getRealPath() method or with <droplet
src="/myVirtURL"> in Dynamo.
|