Installation"
Jumperchen (talk | contribs) |
Jimmyshiau (talk | contribs) |
||
Line 11: | Line 11: | ||
WEB-INF/lib/, do some little configuration in web.xml and you can declaring ZK component tag in | WEB-INF/lib/, do some little configuration in web.xml and you can declaring ZK component tag in | ||
your JSP document. We'll discuss how to do settings in web.xml below. | your JSP document. We'll discuss how to do settings in web.xml below. | ||
+ | |||
+ | Bold text'' | ||
+ | |||
+ | = Maven Project = | ||
+ | |||
+ | If your project is managed by Maven already, you can adopt ZK JSP Tags easily by simply adding a dependency<ref>If you didn't setup zk maven repository yet, you have to [[ZK_Installation_Guide/Setting_up_IDE/Maven/Use_ZK_Maven_Artifacts/Resolving_ZK_Framework_Artifacts_via_Maven#How_to_Use_ZK_Maven_Repository | setup zk maven repository]] too.</ref> | ||
+ | |||
+ | For projects depending on ZK '''5.0.x''', add the following dependency: | ||
+ | |||
+ | <source lang="xml"> | ||
+ | |||
+ | <dependency> | ||
+ | <groupId>org.zkoss.zk</groupId> | ||
+ | <artifactId>zuljsp</artifactId> | ||
+ | <version>1.8</version> | ||
+ | </dependency> | ||
+ | |||
+ | </source> | ||
+ | |||
+ | For projects depending on ZK '''6.0.x''', add the following dependency: | ||
+ | |||
+ | <source lang="xml"> | ||
+ | |||
+ | <dependency> | ||
+ | <groupId>org.zkoss.zk</groupId> | ||
+ | <artifactId>zuljsp</artifactId> | ||
+ | <version>2.1</version> | ||
+ | </dependency> | ||
+ | |||
+ | </source> | ||
+ | |||
+ | <blockquote> | ||
+ | ---- | ||
+ | <references/> | ||
+ | </blockquote> | ||
=Additional Configurations for ZK JSP Tags in web.xml= | =Additional Configurations for ZK JSP Tags in web.xml= |
Revision as of 09:56, 20 June 2012
This section outlines information on installing ZK JSP Tags.
Install ZK First
Please follow ZK Installation Guide to install the ZK environment first.
Install ZK JSP Tags
Installation of ZK JSP Tags is very simple; you unpack the downloaded zip file, copy zuljsp.jar to WEB-INF/lib/, do some little configuration in web.xml and you can declaring ZK component tag in your JSP document. We'll discuss how to do settings in web.xml below.
Bold text
Maven Project
If your project is managed by Maven already, you can adopt ZK JSP Tags easily by simply adding a dependency[1]
For projects depending on ZK 5.0.x, add the following dependency:
<dependency>
<groupId>org.zkoss.zk</groupId>
<artifactId>zuljsp</artifactId>
<version>1.8</version>
</dependency>
For projects depending on ZK 6.0.x, add the following dependency:
<dependency>
<groupId>org.zkoss.zk</groupId>
<artifactId>zuljsp</artifactId>
<version>2.1</version>
</dependency>
- ↑ If you didn't setup zk maven repository yet, you have to setup zk maven repository too.
Additional Configurations for ZK JSP Tags in web.xml
You have to do one more configuration in web.xml to make ZK JSP Tags working for you. You must add a Listener(org.zkoss.jsp.spec.JspFactoryContextListener) into web.xml as following:
<listener>
<description>ZK JSP Tags environment initiation </description>
<display-name>ZK JSP Initiator</display-name>
<listener-class>org.zkoss.jsp.spec.JspFactoryContextListener</listener-class>
</listener>
Version History
Version | Date | Content |
---|---|---|