ZK Loader"

From Documentation
m
Line 1: Line 1:
 
  Location: WEB-INF/web.xml
 
  Location: WEB-INF/web.xml
  
<source lang="xml" >
+
'''[Required] Class:''' <javadoc>org.zkoss.zk.ui.http.DHtmlLayoutServlet</javadoc>
[Required] Class: <javadoc>org.zkoss.zk.ui.http.DHtmlLayoutServlet</javadoc>
+
 
</source>
 
  
 
<tt>DHtmlLayoutServlet</tt> is a servlet used to load ZUML pages when the Web server receives URL requests sent by users.
 
<tt>DHtmlLayoutServlet</tt> is a servlet used to load ZUML pages when the Web server receives URL requests sent by users.

Revision as of 06:52, 9 July 2010

Location: WEB-INF/web.xml

[Required] Class: DHtmlLayoutServlet


DHtmlLayoutServlet is a servlet used to load ZUML pages when the Web server receives URL requests sent by users.

Notice that you must specify load-on-startup since many other servlets depend on the ZK loader.

<load-on-startup>1</load-on-startup>

It is suggested to map this servlet to the zul and zhtml extensions as shown in the Sample section below. It is OK if you want to map xul and html, too.

The Initial Parameters

init-param
Descriptions
update-uri [Required]


It specifies the URI which the ZK AU engine is mapped to.

For example, if the ZK AU engine is mapped to /zkau/*, by use of servlet-mapping, then specify /zkau for this parameter.

Note: if the servlet container is used with other Web server, like Apache, you have to map this update URI to the servlet container (in additions to zul and zhtml files).

compress [Optional][Default:true]


It specifies whether to compress the output if the browser supports the compression (Accept-Encoding) and this Servlet is not included by other Servlets.

log-level [Optional]


It specifies the default log level for org.zkoss. If not specified, the system default (usually INFO) is used.

Possible values: OFF, ERROR, WARNING, INFO, DEBUG and FINER. Refer to the Beyond ZK chapter in the Developer's Guide.