ZK Resource Engine"
From Documentation
(One intermediate revision by the same user not shown) | |||
Line 6: | Line 6: | ||
{{versionSince| 9.5.0}} | {{versionSince| 9.5.0}} | ||
− | ZK Resource Engine | + | ZK Resource Engine is a servlet that handles static resources. After you configure this servlet, ZK will retrieve its own static resources (including wpd, wcs, dsp, and images) with the specified URL pattern. For those versions without this servlet (before 9.5.0), ZK retrieves static resources by requesting <code>/zkau</code>. |
Mapping URL to ZK Resource Engine is straightforward: | Mapping URL to ZK Resource Engine is straightforward: | ||
Line 21: | Line 21: | ||
</source> | </source> | ||
− | Notice that the URL pattern mapped to this engine must be consistent with the < | + | Notice that the URL pattern mapped to this engine must be consistent with the <code>resource-uri</code> parameter of [[ZK_Configuration_Reference/web.xml/ZK_Loader|ZK Loader]]. |
=Version History= | =Version History= |
Latest revision as of 08:31, 25 December 2024
DHtmlResourceServlet
[Optional] Class: DHtmlResourceServlet
Since 9.5.0
ZK Resource Engine is a servlet that handles static resources. After you configure this servlet, ZK will retrieve its own static resources (including wpd, wcs, dsp, and images) with the specified URL pattern. For those versions without this servlet (before 9.5.0), ZK retrieves static resources by requesting /zkau
.
Mapping URL to ZK Resource Engine is straightforward:
<servlet>
<servlet-name>resourceEngine</servlet-name>
<servlet-class>org.zkoss.zk.au.http.DHtmlResourceServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>resourceEngine</servlet-name>
<url-pattern>/zkres/*</url-pattern>
</servlet-mapping>
Notice that the URL pattern mapped to this engine must be consistent with the resource-uri
parameter of ZK Loader.
Version History
Version | Date | Content |
---|---|---|
9.5.0 | 09/29/20 |