[opencms-dev] OpenCms and ZK
Roman Uhlig
roman.uhlig at knve.de
Mon Nov 20 17:13:54 CET 2006
I've tried the following without success (same behaviour like without
specifying the filter):
<filter>
<filter-name>zkFilter</filter-name>
<filter-class>org.zkoss.zk.ui.http.DHtmlLayoutFilter</filter-class>
<init-param>
<param-name>extension</param-name>
<param-value>zul</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>zkFilter</filter-name>
<servlet-name>zkLoader</servlet-name>
</filter-mapping>
I'm not sure if this is the right syntax to map .zul files coming from
OpenCmsServlet to the zkLoader servlet. Reading the part about filters
inside the servlet specification didn't help much.
Thanks,
Roman
Christoph Schönfeld wrote:
>
> You can map a filter directly to a servlet. See the Java Servlet
> Specification SRV.6.2.4 for more information.
> Extracted from page 53 and 54 (Version 2.4):
>
> Once a filter has been declared in the deployment descriptor, the
> assembler
> uses the <filter-mapping> element to define servlets and static
> resources in the
> Web application to which the filter is to be applied. Filters can be
> associated with
> a servlet using the <servlet-name> element. For example, the following
> code
> example maps the Image Filter filter to the ImageServlet servlet:
> FILTERING
> Final Version
> 54
> <filter-mapping>
> <filter-name>Image Filter</filter-name>
> <servlet-name>ImageServlet</servlet-name>
> </filter-mapping>
> Filters can be associated with groups of servlets and static content
> using the
> <url-pattern> style of filter mapping:
> <filter-mapping>
> <filter-name>Logging Filter</filter-name>
> <url-pattern>/*</url-pattern>
> </filter-mapping>
> Here the Logging Filter is applied to all the servlets and static
> content pages
> in the Web application, because every request URI matches the ‘/*’ URL
> pattern.
> When processing a <filter-mapping> element using the <url-pattern>
> style, the container must determine whether the <url-pattern> matches the
> request URI using the path mapping rules defined in Chapter SRV.11,
> “Mapping
> Requests to Servlets”.
>
> Christoph
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>
>
--
View this message in context: http://www.nabble.com/OpenCms-and-ZK-tf2668499.html#a7445227
Sent from the OpenCMS - Dev mailing list archive at Nabble.com.
More information about the opencms-dev
mailing list