Starting with Genero 3.00, the PATH with Type WEBSERVER attribute is
deprecated and used by GWC for HTML5 applications only.
Note:
UI applications that are using Genero Web Client for JavaScript
(GWC-JS), see the PUBLIC_IMAGEPATH under the UA_OUTPUT element instead.
When you specify the Type as WEBSERVER, the PATH value
provides the URL for the directory where the resources reside on the Web server side. 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>
- resID is the unique identifier for this picture component.
- 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".
- The TYPE attribute is optional; if not specified, it defaults to
WEBSERVER.
- $(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/ua/r/AppID
If
$(connector.uri) is not specified in the picture path, the web server is searched
for the images.
- 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-ends 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.