Sample of web.xml for Servlet 3.0

From Documentation
Revision as of 02:15, 9 February 2012 by Tomyeh (talk | contribs) (ZK 6)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


DocumentationZK Installation GuideZK BackgroundSample of web.xml for Servlet 3.0
Sample of web.xml for Servlet 3.0



ZK 6 supports Servlet 3.0 Pluggability, so you don't have to configure WEB-INF/web.xml at all.

<web-app xmlns="http://java.sun.com/xml/ns/javaee"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
	version="3.0">

	<description><![CDATA[My ZK Application]]></description>
	<display-name>MyApp</display-name>
</web-app>

On the other hand, if metadata-complete=“true” was specified in WEB-INF/web.xml (i.e., the support of pluggability is disabled), you have to configure ZK servlets and listeners manually as described in the Sample of web.xml for Servlet 2.4.

Version History

Last Update : 2012/02/09


Version Date Content
6.0.0 December 2011 The support of Servlet 3.0 Pluggability was introduced.



Last Update : 2012/02/09

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