-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I am trying to convert a .zul file into .jsp. However, I encounter this particular error :
org.zkoss.lang.SystemException: org.xml.sax.SAXParseException; systemId:
This is the actual .zul file :
<zk>
<window apply="org.zkoss.bind.BindComposer"
viewModel="@id('vm')@init('com.sample.you.MyViewModel')"
validationMessages="@id('vmsgs')">
<hlayout>count: <label value="@load(vm.count)" /></hlayout>
<button label="add" onClick="@command('cmd')"/>
</window>
</zk>
This is my converted .jsp file :
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="http: //www.zkoss.org/jsp/zul" prefix="z" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http: //www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Temp</title>
</head>
<body>
<z:page>
<z:window id="vm" use="ph.alliance.com.MyViewModel" border="normal" >
<z:hlayout>count: <z:label value="${vm.count}" /></z:hlayout>
<z:button label="add" onClick="@command('cmd')"/>
</z:window>
</z:page>
</body>
</html>
Which part did I commit mistake?
Thank you.
Asked: 2014-06-18 13:24:38 +0800
Seen: 16 times
Last updated: Jun 18 '14
use Hibernate standard methods to manage Sessions ??
ZK tag raw text appended with object value
JSP and variable value from zscript
getting error while running spreadsheet jsp
How to include zul file in jsp file
jsp contents are not getting rendered redirected from zul page.
by the way, I purposely placed spaces in URLs since I have no enough karma to post links.
kissa ( 2014-06-18 13:25:27 +0800 )editHi, try add <z:zkhead /> in <head></head>
vincentjian ( 2014-06-19 01:58:25 +0800 )editI have added it already but it did not work. Same problem occurred. I tried placing <z:zkhead /> right before <title> and also right after. Both scenarios were not successful. Do you have any other idea?
kissa ( 2014-06-19 04:53:58 +0800 )edit