0

Why do I get org.xml.sax.SAXParseException?

asked 2014-06-18 13:24:38 +0800

kissa gravatar image kissa
3 2

updated 2014-06-18 14:18:02 +0800

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.

delete flag offensive retag edit

Comments

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 )edit

Hi, try add <z:zkhead /> in <head></head>

vincentjian ( 2014-06-19 01:58:25 +0800 )edit

I 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
Be the first one to answer this question!
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
1 follower

RSS

Stats

Asked: 2014-06-18 13:24:38 +0800

Seen: 16 times

Last updated: Jun 18 '14

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