ZK Resource Engine"
From Documentation
Line 26: | Line 26: | ||
Notice that the URL pattern mapped to this engine must be consistent with the <tt>resource-uri</tt> parameter of [[ZK_Configuration_Reference/web.xml/ZK_Loader|ZK Loader]]. | Notice that the URL pattern mapped to this engine must be consistent with the <tt>resource-uri</tt> parameter of [[ZK_Configuration_Reference/web.xml/ZK_Loader|ZK Loader]]. | ||
− | |||
− | |||
=Version History= | =Version History= |
Revision as of 08:14, 21 September 2020
DHtmlResourceServlet
[Required] Class: DHtmlResourceServlet
Since 9.5.0
ZK Resource Engine, it is a servlet that handles static resources (wpd, wcs).
Notice that the URL pattern mapped to this engine must be consistent with the resource-uri parameter of ZK Loader.
Map URL to ZK Resource Engine
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 |