Accessing the pre-rendered site
Pre-rendered sites are accessed either through IBM Lotus Web Content Management, or through a Web server.
Accessing the pre-rendered site through a Web Content Management application
To enable users to access the pre-rendered site through a Web Content Management application, update WCMConfigService.properties and make the following changes:
- Ensure that the following line is commented out:
connect.businesslogic.module.default.class= com.aptrix.pluto.renderer.RendererModule
- Ensure that the following line is not commented out:
connect.businesslogic.module.default.class= com.aptrix.cacher.CacherModule
Users can access the site through the following URL:
http://host_name:port_number/wps/wcm/connect/library_name/site_nameThe library_name parameter is optional. If the library is specified, the Web Content Management application looks for the site in that library. If no library is specified, the default library is used, as specified by the defaultLibrary property in WCMConfigService.properties.
- Connect tags:
Connect tags are not processed by the CacherModule and are rendered intact. When the pre-rendered page is accessed by a user, only then will the connect tags be processed.
- Pre-rendering JSP components:
The pre-rendering feature cannot be used to pre-render JSP components.
- Links to content not yet pre-rendered:
A component, such as a menu, that contains links to content not yet pre-rendered is retrieved by the CacherModule and added to the pre-rendered site. This only applies to content belonging to sites configured to be pre-rendered.
- Custom expiring:
Custom caching parameters cannot be used in connect tags and URL requests in pre-rendered sites. "EXPIRES=" and "CONNECTORCACHEEXPIRY=" can be used to override your server's default basic and data cache settings.
- Authoring portlet:
The authoring portlet can still be accessed when the default class is changed from RendererModule to CacherModule as long as it has not been added to the lists of sites to be pre-rendered. (See the Cacher Configuration section)
- CacherModule as default:
If using the URL interface when the CacherModule is the default, you do not need to specify ?mod=cacher. Instead, enter the request as follows:
http://host_name:port_number/wps/wcm/connect?SRV=cacheSite&Site=site_name&library=library_name
Accessing the pre-rendered site through a Web server
If your Web server is not used for WebSphere Portal Server, you can configure your Web server to map to the following alias and Web Content Management directories:
Table 1. Alias and directory details
Alias Directory /wps/wcm/connect [ILWWCM_HOME]/ilwwcm/cacher
When using a Web server to view a pre-rendered site, the above directories require execute access.
Users access the site via the following URL:
http://host_name:port_number/wps/wcm/connect/library_name/site_nameUse the following configuration parameters to change the context of the URLs generated via pre-rendering:
- connect.moduleconfig.cacher.task.cacherurl
- connect.moduleconfig.cacher.task.servletpath
For example, to set a context of /sales, use the following parameters:
- connect.moduleconfig.cacher.task.cacherurl=http://${WCM_HOST}:${WCM_PORT}/sales
- connect.moduleconfig.cacher.task.servletpath=
If your Web server is used for both a WebSphere Portal server and accessing the pre-rendered site, change the context of the URLs . Any context that starts with the WebSphere Portal server context, /wps for example, will be redirected to WebSphere Portal server.
- Connect tags cannot be used:
Connect tags are not processed by the CacherModule and are rendered intact. When the page is viewed through a Web server, connect tags cannot be processed. Therefore, connect tags cannot be used in sites that are to be viewed through a Web server.
- Pre-rendering JSP components:
The pre-rendering feature cannot be used to pre-render JSP components.
- Dynamic elements:
When viewing a pre-rendered site through a Web server, any dynamic elements such as menus and navigators are displayed as rendered by the configured CacherModule user, not by the user accessing the site. This means personalization cannot be used.
Parent topic:
Installing a pre-rendered delivery server