-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3981318
By: nobody
my web.xml
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>
<dispatcher>REQUEST</dispatcher>
<dispatcher>INCLUDE</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>ERROR</dispatcher>
</filter-mapping>
my jsp
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%> <%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <base href="<%=basePath%>">
<title>My JSP 'test.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache"> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="expires" content="0"> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<form action="/updateProfile" xmlns:x="http://www.potix.com/2005/zul">
<table>
<tr>
<td>Firt Name</td>
<td><input type="text" name="firstName"
value="${requestScope.profile.firstName}"/></td>
</tr>
<tr>
<td>Last Name</td>
<td><input type="text" name="lastName"
value="${requestScope.profile.lastName}"/></td>
</tr>
<tr>
<td>Birthday</td>
<td><x:datebox name="birthday"
value="${requestScope.profile.birthday}"/></td>
</tr>
<tr>
<td>Title</td>
<td><x:combobox name="title" value="${requestScope.profile.title}"/></td>
</tr>
<tr>
<td>Role</td>
<td>
<x:listbox name="role">
<x:listitem value="1"
selected="${requestScope.profile.role=='1'}" label="Determine need"/>
<x:listitem value="2"
selected="${requestScope.profile.role=='2'}" label="Evaluate products/sesrvices"/>
<x:listitem value="3"
selected="${requestScope.profile.role=='3'}" label="Recommend products/sesrvices"/>
<x:listitem value="4"
selected="${requestScope.profile.role=='4'}" label="Implement products/sesrvices"/>
<x:listitem value="5"
selected="${requestScope.profile.role=='5'}" label="Techinical decision maker"/>
<x:listitem value="6"
selected="${requestScope.profile.role=='6'}" label="Financial decision maker"/> </x:listbox>
</td>
</tr>
<tr>
<td colspan="2">
<input type="submit" value="Update"/>
<input type="reset"/>
</td>
</tr>
</table>
</form>
</body>
</html>
the error:
org.xml.sax.SAXParseException: White spaces are required between publicId and systemId
please help me :(
Asked: 2006-10-26 03:03:02 +0800
Seen: 341 times
Last updated: Oct 26 '06