Essential ATG Dynamo Training - Got atg Certified Relationship Management Developer?
This is not an official ATG site: ATG, Dynamo, Scenario Server and Personalization Server are trademarks or registered trademarks of Art Technology Group
Articles Exercises Resources Links Search

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.

 

 

 


Technical Training Advertise your Training Programs for Free! Los Angeles Web Design Shopping Cart Software  Form a Corporation