-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3678977
By: gladiator
Hi,
I am trying to modify my existing jsp pages to use zk. here is one scenario:
in a.jsp:
<jsp:include page="b.jsp" flush="false"> ...
</jsp>
I would like to have to embed a simple <window title="hi"></window> along with rest of the existing jsp code in b.jsp.
how can this be done? I tried specifying the filter in web.xml, but it doesn't help.
thanks.
<filter-name>zkFilter</filter-name>
<filter-class>com.potix.zk.ui.http.DHtmlLayoutFilter</filter-class>
<init-param>
<param-name>extension</param-name>
<param-value>html</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>zkFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3679640
By: gladiator
I also have
<x:window name="hi" border="normal"
xmlns:x="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
hello world
<x:window/>
inside b.jsp, but for some reason it seems that this tag is not postprocessed by zkFilter. How can I debug this? Is there a way to see zkFilter actually intercepts the resulting htmls generated from my jsps?
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3679705
By: gladiator
ok there was a typo in <x:window/> it should be </x:window>. But a greater problem is that it seems tomcat doesn't work well with filter chain, for example I can't filter something like /something/*.jsp or /something/*, The only valid filter pattern I find so far is /*, which will filter everything.
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3679904
By: tomyeh
I'll add a log. Please wait for 4/11 nightly.
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3679988
By: gladiator
thanks I figured it why it wasn't getting intercepted by zk. It has to do with the url-pattern specified in web.xml and tomcat.
see this post for reference
http://www.codecomments.com/archive254-2004-8-152422.html
Asked: 2006-04-10 18:53:20 +0800
Seen: 310 times
Last updated: Apr 11 '06