fckeditor出错
TypeError:'null' 为空或不是对象
任何运行错误都会导致该域验证失败。
===========================================================
目录结构
guestbook
src
WebRoot
js
validation-config.dtd
validation-config.xml
validation-framework.js
META-INF
fckeditor
WEB-INF
lib
web.xml
addMessage.html
=============================================================
手写或改动过的所有的文件如下:
【addMessage.html】
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>留言板</title>
</head>
<body>
<script src="../guestbook/js/validation-framework.js"></script>
<script src="/guestbook/fckeditor/fckeditor.js"></script>
<div align="center">
<h1>我的留言板</h1>
</div>
<form id="form1" name="form1" method="post" action="/guestbook/servlet/addMessage" onsubmit="return doValidate(this)">
<table width="704" height="293" border="0">
<tr>
<td>姓名:</td>
<td><label>
<input name="name" type="text" id="name" size="40" />
</label></td>
</tr>
<tr>
<td>E-mail:</td>
<td><label>
<input name="email" type="text" id="email" size="40" />
</label></td>
</tr>
<tr>
<td>电话:</td>
<td><label>
<input name="phone" type="text" id="phone" size="40" />
</label></td>
</tr>
<tr>
<td>主题:</td>
<td><label>
<input name="title" type="text" id="title" size="40" />
</label></td>
</tr>
<tr>
<td>内容:</td>
<td><label>
<script>
var editor =new FCKeditor('content');
editor.BasePath='/guestbook/fckeditor/';
editor.Height=400;
editor.ToolbarSet='Default';
editor.Create();
</script>
</label></td>
</tr>
<tr>
<td><label>
<input type="reset" name="reset" id="reset" value="重置" />
</label></td>
<td><label>
<input type="submit" name="submit" id="submit" value="提交" />
</label></td>
</tr>
<tr>
<td> </td>
<