0

Problem with JSP and ZK example

asked 2006-11-09 18:39:39 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4004540

By: raidenx112

Hi, I been at this for a while but it just doesn't seem to work. I am following the example from ZK Small Talks. My files are as follows:

JSP page, XHTML compliant, had it checked on the W3c Markup Validation Service

------------------------------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns = "http://www.w3.org/1999/xhtml">
<head>
<title>Quick Example</title>
</head>
<body>
<h1> Quick Example
</h1>

<p> Note that the layout (with tabs and alignment) is
purely for readability - XHTML doesn't require it.
</p>
</body>
</html>
---------------------------------------------------------------



My web.xml
----------------------------------------------------------------

<!-- ZK 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>html</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>zkFilter</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
<!-- ZK Filter -->

----------------------------------------------------------------

As you can see, I don't have any ZK components on the JSP page. I'm just trying to be able to load the original JSP page with the modifications added to the web.xml before moving on. The error I get is this:


org.zkoss.zk.ui.UiException: The Web manager not found. Make sure <load-on-startup> is specified for org.zkoss.zk.ui.http.DHtmlLayoutServlet


I didn't see anything in the example that says I needed to define a servlet.
Am I missing something here? By the way, I'm using Tomcat 5.5.2.


Thanks.


Jack

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2006-11-11 15:38:09 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4007025

By: henrichen

The ZK Filter will call into the DHtmlLayoutServlet. Just copy web.xml of zkdemo to your web.xml.

/henri

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-11-09 18:39:39 +0800

Seen: 612 times

Last updated: Nov 11 '06

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