Java Ajax Development Series-2, the project uses ZK

Source: Internet
Author: User
Development Environment ZK Studio

ZK studio plug-in

Pom. xml

<Repositories> Add the zk repository address

<Repository>

<ID> ZK repository </ID>

<URL> http://mavensync.zkoss.org/maven2 </URL>

</Repository>

Dependency settings

<! -- ZK -->

<Dependency>

<Groupid> commons-logging </groupid>

<Artifactid> commons-logging </artifactid>

<Version> 1.1.1 </version>

</Dependency>

<Dependency>

<Groupid> commons-io </groupid>

<Artifactid> commons-io </artifactid>

<Version> 1.3.1 </version>

</Dependency>

<Dependency>

<Groupid> commons-lang </groupid>

<Artifactid> commons-lang </artifactid>

<Version> 2.4 </version>

</Dependency>

<Dependency>

<Groupid> org. zkoss. Theme </groupid>

<Artifactid> breeze </artifactid>

<Version> 5.0.7.1 </version>

</Dependency>

<Dependency>

<Groupid> org. zkoss. ZK </groupid>

<Artifactid> Zul </artifactid>

<Version> 5.0.7.1 </version>

</Dependency>

<Dependency>

<Groupid> org. zkoss. ZK </groupid>

<Artifactid> zkplus </artifactid>

<Version> 5.0.7.1 </version>

</Dependency>

<Dependency>

<Groupid> org. zkoss. ZK </groupid>

<Artifactid> zhtml </artifactid>

<Version> 5.0.7.1 </version>

</Dependency>

<Dependency>

<Groupid> org. zkoss. Common </groupid>

<Artifactid> zweb </artifactid>

<Version> 5.0.7.1 </version>

</Dependency>

<Dependency>

<Groupid> org. zkoss. Common </groupid>

<Artifactid> zcommon </artifactid>

<Version> 5.0.7.1 </version>

</Dependency>

<Dependency>

<Groupid> org. zkoss. ZK </groupid>

<Artifactid> zuljsp </artifactid>

<Version> 1.5 </version>

</Dependency>

<Dependency>

<Groupid> org. zkoss. ZK </groupid>

<Artifactid> zkplus </artifactid>

<Version> 5.0.7.1 </version>

</Dependency>

<! --

<Dependency>

<Groupid> org. zkoss. ZK </groupid>

<Artifactid> zml </artifactid>

<Version> 3.6.4 </version>

</Dependency>

-->

<Dependency>

<Groupid> org. zkoss. ZK </groupid>

<Artifactid> Zul </artifactid>

<Version> 5.0.7.1 </version>

</Dependency>

<Dependency>

<Groupid> org. zkoss. ZK </groupid>

<Artifactid> zkspring-core </artifactid>

<Version> 3.0 </version>

</Dependency>

<Dependency>

<Groupid> org. zkoss. ZK </groupid>

<Artifactid> zkspring-Security </artifactid>

<Version> 3.0 </version>

</Dependency>

<Dependency>

<Groupid> org. zkoss. zkforge. El </groupid>

<Artifactid> zcommons-El </artifactid>

<Version> 1.1.0 </version>

</Dependency>

<Dependency>

<Groupid> org. beanshell </groupid>

<Artifactid> bsh </artifactid>

<Version> 2.0b4 </version>

</Dependency>

<! -- ZK's end -->

Web. xml

<Servlet>

<Servlet-Name> zkloader </servlet-Name>

<Servlet-class>

Org. zkoss. zk. UI. http. dhtmllayoutservlet

</Servlet-class>

<Init-param>

<Param-Name> Update-Uri </param-Name>

<Param-value>/zkau </param-value>

</Init-param>

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

</Servlet>

<Listener>

<Description> used to cleanup when a session is destroyed </description>

<Display-Name> ZK session cleaner </display-Name>

<Listener-class> org. zkoss. zk. UI. http. httpsessionlistener </listener-class>

</Listener>

<Servlet>

<Servlet-Name> auengine </servlet-Name>

<Servlet-class>

Org. zkoss. zk. au. http. dhtmlupdateservlet

</Servlet-class>

</Servlet>

<Servlet-mapping>

<Servlet-Name> zkloader </servlet-Name>

<URL-pattern> *. Zul </url-pattern>

</Servlet-mapping>

<Servlet-mapping>

<Servlet-Name> zkloader </servlet-Name>

<URL-pattern> *. zhtml </url-pattern>

</Servlet-mapping>

<Servlet-mapping>

<Servlet-Name> auengine </servlet-Name>

<URL-pattern>/zkau/* </url-pattern>

</Servlet-mapping>

 

After the above configuration is complete, you can use the zk function in the project. The above Maven configuration includes various components of the commonly used zk.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.