zk.xml"

From Documentation
m
Line 1: Line 1:
 +
{{ZKConfigurationReferencePageHeader}}
 +
 
<tt>WEB-INF/zk.xml</tt> is the configuration descriptor of ZK. This file optional. If you need to configure ZK differently from the default, you could provide a file called <tt>zk.xml</tt> under the <tt>WEB-INF</tt> directory.
 
<tt>WEB-INF/zk.xml</tt> is the configuration descriptor of ZK. This file optional. If you need to configure ZK differently from the default, you could provide a file called <tt>zk.xml</tt> under the <tt>WEB-INF</tt> directory.
  
Line 18: Line 20:
 
Notice that <code>zk.xml</code> found in the classpath is parsed first. It means <code>WEB-INF/zk.xml</code> has higher priority.
 
Notice that <code>zk.xml</code> found in the classpath is parsed first. It means <code>WEB-INF/zk.xml</code> has higher priority.
  
==List of Elements==
+
{{ZKConfigurationReferenceHeadingToc}}
*[[developer reference Appendix B. WEB-INF/zk.xml The richlet and richlet-mapping Elements | The richlet and richlet-mapping Elements]]
+
 
*[[developer reference Appendix B. WEB-INF/zk.xml The listener Element | The listener Element]]
+
 
*[[developer reference Appendix B. WEB-INF/zk.xml The log Element | The log Element]]
+
{{ZKConfigurationReferencePageFooter}}
*[[developer reference Appendix B. WEB-INF/zk.xml The client-config Element | The client-config Element]]
 
*[[developer reference Appendix B. WEB-INF/zk.xml The desktop-config Element | The desktop-config Element]]
 
*[[developer reference Appendix B. WEB-INF/zk.xml The xel-config Element | The xel-config Element]]
 
*[[developer reference Appendix B. WEB-INF/zk.xml The language-config Element | The language-config Element]]
 
*[[developer reference Appendix B. WEB-INF/zk.xml The session-config Element | The session-config Element]]
 
*[[developer reference Appendix B. WEB-INF/zk.xml The system-config Element | The system-config Element]]
 
*[[developer reference Appendix B. WEB-INF/zk.xml The zscript-config Element | The zscript-config Element]]
 
*[[developer reference Appendix B. WEB-INF/zk.xml The device-config Element | The device-config Element]]
 
*[[developer reference Appendix B. WEB-INF/zk.xml The error-page Element | The error-page Element]]
 
*[[developer reference Appendix B. WEB-INF/zk.xml The preference Element | The preference Element]]
 
*[[developer reference Appendix B. WEB-INF/zk.xml The library-property Element | The library-property Element]]
 
**[[developer reference Appendix B. WEB-INF/zk.xml Library Properties | Library Properties]]
 
*[[developer reference Appendix B. WEB-INF/zk.xml The system-property Element | The system-property Element]]
 
[[Category:Developer's Reference]]
 

Revision as of 08:43, 12 July 2010


WEB-INF/zk.xml is the configuration descriptor of ZK. This file optional. If you need to configure ZK differently from the default, you could provide a file called zk.xml under the WEB-INF directory.

The root element must be <zk>. Then, you could specify any combination of the following element under the root element.

File Location

You can place zk.xml in either a WAR file or a JAR file.

WEB-INF/zk.xml

zk.xml is usually packed with a Web application and it shall be located under WEB-INF.

metainfo/zk/zk.xml

[since 3.6.0]

For library providers, zk.xml is better to be packed with a JAR file. It can be done by placing zk.xml in the metainfo/zk directory identifiable by classpath (i.e., in a JAR file).

Notice that zk.xml found in the classpath is parsed first. It means WEB-INF/zk.xml has higher priority.


Subsections:




Last Update : 2010/07/12

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