0

mixing jsp code with zk

asked 2006-04-10 18:53:20 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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>

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2006-04-10 21:27:25 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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?

link publish delete flag offensive edit

answered 2006-04-10 22:05:45 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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.

link publish delete flag offensive edit

answered 2006-04-11 01:00:20 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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.

link publish delete flag offensive edit

answered 2006-04-11 02:17:22 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2006-04-10 18:53:20 +0800

Seen: 310 times

Last updated: Apr 11 '06

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More