-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Looking into zk-jsp more. Where is the latest info? The following is 2.5 yr old: https://sourceforge.net/project/downloading.php?group_id=152762&filename=ZK-JspTags-UserGuide_1.2.pdf&a=15024133
I'm most interested in:
1) What is supported "now"...see appendix in above doc.
2) Is correct maven ref
<dependency>
<groupId>org.zkoss.zk</groupId>
<artifactId>zuljsp</artifactId>
<version>1.4.1</version>
</dependency>
3) Only config change is in web.xml...?
<listener> <description>ZK JSP Tags environment initiation </description> <display-name>ZK JSP Initiator</display-name> <listener-class>org.zkoss.jsp.spec.JspFactoryContextListener</listener-class>
</listener>
4) What would basic hello.jsp be...?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ taglib uri="http://www.zkoss.org/jsp/zul" prefix="z" %>
<html>
<body>
<z:label value="Hello World"/>
</body>
</html>
5) How direct http request if using .jsp and .zul files when NOT allowing those extensions in the URL? In other, similar situations, I've had to check for the existence of one before doing a URL proxy.
1)
it's true that the USER Guide is the support "now
2)
yes !!
3)
sure ,
remember add ZK core related configuration and add ZK library (lastest is 5.0.4) into your project library
4)
true (simply use taglib to add ZK component into your jsp page)
5)
you can use jsp redirect
Not sure we are in sync on #5...here is a little more detail.
-We use tuckey urlrewrite filter to pass through all URLs with a period (.jpg, .js, .css, .html, etc.)
-URLs without a period get rewritten with ".zul" and proxied (not rewritten)
example: browser URL http://example.com/mypage gets proxied to http://example.com/mypage.zul
If I now start using jsp pages also, how can I know to serve the request from a .jsp or .zul file? In other apps with similar scenario I would check for mypage.jsp existence, if there serve the jsp, or if not serve a mypage.zul.
Perhaps 1) all dynamic pages are served through jsp, 2) all requests to be served by jsp are trapped in the url rewrite filter, or 3) some other way.
imo, i think you can have solution 1) all dynamic pages are served through jsp
then add ZK component into your JSP page by using tags or ZK's createComponents()
btw, in me cases, i use servlet filter to separate the requests into different resources
Asked: 2010-10-25 11:20:16 +0800
Seen: 323 times
Last updated: Oct 31 '10