PATH with Type WEBSERVER

When you specify the Type as WEBSERVER, the PATH value provides the URL for the directory where the resources reside. This URL typically consists of the Web server directory resource combined with a directory alias.

Syntax

<WEB_APPLICATION_PICTURE_COMPONENT Id="resID">
  <PATH Id="pathID" Type="WEBSERVER">$(connector.uri)/path</PATH>
</WEB_APPLICATION_PICTURE_COMPONENT>
  1. resID is the unique identifier for this picture component.
  2. pathID defines what is located in the specified path, such as "Image" or "Resource". The Id attribute for the PICTURE element is optional; if not specified, it defaults to "Image".
  3. The TYPE attribute is optional; if not specified, it defaults to WEBSERVER.
  4. $(connector.uri) is the resource for the Web server directory. If you are using a direct connection to the GAS, the resource $(connector.uri) is empty. If you connect through an Apache web server, $(connector.uri) is replaced by /gas/, assuming your URL is http://WebServer/gas/wa/r/AppID.If $(connector.uri) is not specified in the picture path, the web server is searched for the images.
  5. path is relative to the DOCUMENT_ROOT path set in the configuration to map to the physical directory that stores the image files. You need to specify a valid path according to the DOCUMENT_ROOT path in your configuration.

Example

<!-- A Legacy Picture Component -->
<WEB_APPLICATION_PICTURE_COMPONENT Id="cpn.gwc.picture.appserver">
<PATH Id="Image" Type="WEBSERVER" >$(connector.uri)/pic</PATH>
<PATH Id="Resource" Type="WEBSERVER" >$(connector.uri)/fjs</PATH>
</WEB_APPLICATION_PICTURE_COMPONENT>
Note: If DOCUMENT_ROOT is set to /usr/local/genero/web, our example maps the Image path to /usr/local/genero/web/pic and the Resource path to /usr/local/genero/web/fjs.
Note: The Front End clients use $(pictures.uri) in their templates to access the pictures. This corresponds to the picture component path: $(connector.uri)/pic.
Tip: When creating your html pages, use the absolute path to html objects like images or JavaScriptâ„¢ files; for example, use /fjs/pic/accept.png rather than ../pic/accept.png, because URLs containing .. will be rejected by the GAS for security reasons.