Tham khảo tài liệu 'quản lý cấu hình web - part 13', công nghệ thông tin, đồ họa - thiết kế - flash phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Getting Started with Alfresco WCM Virtual server JSP support Create a simple hello world JSP load it up and test. The JSP will evaluate without creating the web-inf and files. But more complex WARs will need web-inf and files for Tomcat to evaluate. Previewing WARs and getRealPath For JSP and Java code that use the getRealPath method or the filesystem path for a file Alfresco requires additional configuration for the virtual server preview to function. This is the case for Spring-based web applications where configuration and properties files are required to be read on startup. To enable preview in this case Alfresco needs to be modified to Enable Alfresco to use CIFS refer Chapter 2 for details Mount the CIFS directory Have the virtual server mount the AVM CIFS projection Virtual server configuration The virtual server needs to be configured to mount the new drive. Follow these steps 1. Open up the file in the directory c Alfresco virtualtomcat conf. 2. Locate the following section On Windows the .unix properties are ignored. On Linux the .win properties are ignored. v media alfresco cifs v 3. Modify v to use the drive letter Z used above when mapping to the CIFS server as follows z . 102 Download from Wow eBook Chapter 3 Search Searching against a WCM store is the same as searching against a full repository. However the scope of the search will be limited to that web project only. A search against an AVM store can be performed via Java JavaScript FreeMarker template or the node browser. It is not yet exposed via open search. As the API is the same searches via web services or something similar are the same apart from the store context. Search is only available for the latest snapshot of the head revision for staging. It is