ZK Developer's Guide
ZK Developer's Guide
ZK Developer's Guide
- TAGS
- guide
- iknow.seforge.org
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Online Media Library<br />
The directory lib contains the libraries of the <strong>ZK</strong> framework. For the first time it's<br />
wise to copy all JAR files from the <strong>ZK</strong> framework distribution. If you unzip the<br />
distribution of the version 2.3.0 the structure should look like the figure below. The<br />
structure below shows the structure of the <strong>ZK</strong> distribution. Here you can get the files<br />
you need for your own application.<br />
For our example, you should copy all JAR files from lib, ext, and zkforge to the<br />
WEB-INF/lib directory of your application. It's important that the libraries from ext<br />
and zkforge are copied direct to WEB-INF/lib. Additionally copy the directories tld<br />
and xsd to the WEB-INF directory of your application.<br />
Now after the copy process, we have to create the deployment descriptor<br />
(web.xml) for the web application. Here you can use web.xml from the demo<br />
application, which is provided from the <strong>ZK</strong> framework. For our first steps, we need<br />
no zk.xml (that configuration file is optional in a <strong>ZK</strong> application).<br />
The application itself must be run inside a JEE (Java Enterprise Edition)<br />
Webcontainer. For our example, we used the Tomcat container from the Apache<br />
project (http://tomcat.apache.org). However, you can run the application in<br />
each JEE container that follows the Java Servlet Specification 2.4 (or higher) and runs<br />
under a Java Virtual Machine 1.4 (or higher). We create the zk-media.xml file for<br />
Tomcat, which is placed in conf/Catalina/localhost of the Tomcat directory.<br />
<br />
<br />
<br />
[ 50 ]