0

zk jsp tags

asked 2009-02-21 08:10:17 +0800

saurabh gravatar image saurabh
30

updated 2009-02-23 06:52:07 +0800

Hi ...
I have been trying to use zk tags in my jsp...
I am using the zuljsp.jar and all other latest libraries...
Still while declaring taglib directive like this : <%@ taglib uri="http://www.zkoss.org/jsp/zul" prefix="z" %>
I am getting an error as :
org.apache.jasper.JasperException: PWC6329 :TLD specifies invalid body-content (none) for custom tag zkhead

Or if I do the same thing from eclipse environment then I get the following error while accessing the page with zk tags:
org.apache.jasper.JasperException: /search_music.jsp(13,1) Unable to load tag handler class "org.zkoss.jsp.zul.PageTag" for tag "z:page"


Is there any solution to this...
I am not able to use the zk tags in my jsp...
Please help me or give me some explanation on this...
Thanks in advance...

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2009-08-19 13:47:42 +0800

raigsingh gravatar image raigsingh
36

I know this is an old thread, but I am receiving the same problem when attempting to use the latest zuljsp.jar (1.3.1).
The following bug indicates that the latest version should be downloaded, but it does not seem to resolve the issue:

ZK JSP installation issue - ID: 2693792

Within the TLD file, there is an invalid entry for zkhead body-content:
<tag><!--***** ZkheadTag *****-->
<description>ZkheadTag</description>
<name>zkhead</name>
<tag-class>org.zkoss.jsp.zul.ZkheadTag</tag-class>
<body-content>none</body-content>
</tag>

The value "none" is invalid. I would think that it should be "scriptless" or empty.

If anyone has the solution to this or if there is an updated version that I do not know about, please help. I am having trouble building zuljsp.jar using the build scripts provided with the source.
Thanks

link publish delete flag offensive edit

answered 2009-08-20 18:22:59 +0800

raigsingh gravatar image raigsingh
36

I am currently using ZK v3.6.2 with the zuljsp.jar v1.3.1. When I attempt to reference the tag library within a JSP as such:

<%@ taglib prefix="z" uri="http://www.zkoss.org/jsp/zul"%>

...I receive an NPE in
org.apache.jasper.compiler.TagLibraryInfoImpl on line 417.
That piece of code is :

417 if (teiClassName != null && !teiClassName.equals("")) {
418 try {
419 Class teiClass = ctxt.getClassLoader().loadClass(teiClassName);
420 tei = (TagExtraInfo) teiClass.newInstance();
421 } catch (Exception e) {
422 err.jspError("jsp.error.teiclass.instantiation", teiClassName,
423 e);
424 }
425 }

which is saying teiClassName is null because the body of the zkhead tag is null.

I placed the following in my JSP:
<%@ taglib prefix="z" uri="http://www.zkoss.org/jsp/zul"%>
<z:zkhead>junk</z:zkhead>

...and now I get the following exception:
PWC6188: The absolute uri: http://www.zkoss.org/jsp/zul cannot be resolved in either web.xml or the jar files deployed with this application

Is this a known bug? All of the bugs listed that relate to the ZK JSP tags show as resolved. Is the solution not to use the JSP tags and to develop everything in pure ZK markup? I have a legacy app that uses JSP everywhere so I don't have any other choice right now so I have to use a mixed solution.

I am using the following:
Java:
java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) Server VM (build 11.0-b15, mixed mode)

Web Server:
jetty-6.1.5


once again..thanks

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: 2009-02-21 08:10:17 +0800

Seen: 805 times

Last updated: Aug 20 '09

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