Environment setup"

From Documentation
Line 3: Line 3:
 
__TOC__
 
__TOC__
 
==Configuration files you should know==
 
==Configuration files you should know==
ZKoss has provided Configuration files for most common use cases. In most case, you '''simply copy and paste''' it.
+
ZK provides configuration files for most common use cases. In most case, you '''simply copy and paste''' it. You could find them in the <tt>MyApp</tt> folder after you uncompress the binary distribution.
  
 
'''web.xml''':  
 
'''web.xml''':  
:To develop a Web application with ZK, you have to configure servlets, listeners and an optional filter to web.xml. It is also know as [http://en.wikipedia.org/wiki/Deployment_Descriptor Deployment Descriptor].
+
:To develop a Web application with ZK, we have to configure two Servlets and one listeners to <tt>web.xml</tt><ref>It is also known as [http://en.wikipedia.org/wiki/Deployment_Descriptor Deployment Descriptor]</ref> under the <tt>WEB-INF</tt> directory.
  
 
'''zk.xml''':   
 
'''zk.xml''':   
:zk.xml is the configuration descriptor of ZK. This file is optional. If you need to configure ZK differently from the default, you could provide a file called zk.xml under the WEB-INF directory.  
+
:zk.xml is the configuration descriptor of ZK. This file is 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.
 +
For more information, please refer to the [http://books.zkoss.org/wiki/ZK_Configuration_Reference ZK Configuration Reference].
  
For detail explanation of web.xml, zk.xml, please refer to the [http://books.zkoss.org/wiki/ZK_Configuration_Reference ZK Configuration Reference]
+
<blockquote>
 
+
----
When you use other back-end frameworks like hibernate, you have to modify zk.xml as well. Also, ZKoss has provided reference zk.xml. You can simply copy and paste it.
+
<references/>
 +
</blockquote>
  
 
== See Also ==
 
== See Also ==

Revision as of 07:23, 5 September 2010

Environment setup


Stop.png This documentation is for an older version of ZK. For the latest one, please click here.


Configuration files you should know

ZK provides configuration files for most common use cases. In most case, you simply copy and paste it. You could find them in the MyApp folder after you uncompress the binary distribution.

web.xml:

To develop a Web application with ZK, we have to configure two Servlets and one listeners to web.xml[1] under the WEB-INF directory.

zk.xml:

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

For more information, please refer to the ZK Configuration Reference.


  1. It is also known as Deployment Descriptor

See Also

From ZK Forum:

Eclipse 3.4 and zul.xsd

Quiz

  1. A plugin for FireFox is a must have debug tool. What is it?
  2. What's the visual editor plugin provides by ZKoss?
  3. What's the two configuration files you should know?



Last Update : 2010/09/05

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