ZK Resource Engine

From Documentation
Revision as of 09:50, 15 September 2020 by Jameschu (talk | contribs) (Created page with "{{ZKConfigurationReferencePageHeader}} =DHtmlResourceServlet= [Required] Class: <javadoc> org.zkoss.zk.au.http.DHtmlResourceServlet</javadoc> ZK Resource Engine, it is a serv...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


ZK Resource Engine


DHtmlResourceServlet

[Required] Class: DHtmlResourceServlet


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.

Here is a complete sample.

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.

Here is a complete sample.

Version History

Version Date Content
9.5.0 09/29/20



Last Update : 2020/09/15

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.