test.jsp页面<%@ page language="java" contentType="text/html; charset=ISO-8859-1"%><%@ taglib uri="/WEB-INF/FCKeditor.tld" prefix="FCK" %>
<script type="text/javascript" src="/compass/FCKeditor/fckeditor.js"></script><%----%>
<%--<FCK:editor id="EditorDefault" basePath="/compass/FCKeditor/" height="400" skinPath="/compass/FCKeditor/editor/skins/silver/" > --%>
<%----%>
<%--This is FCKeditor demo!--%>
<%----%>
<%--</FCK:editor>--%>
<form action="l.do" method="post" target="_blank">
<table border="0" width="700"><tr><td>
<textarea id="content" name="content" style="WIDTH: 50%; HEIGHT: 200px">input</textarea>
<script type="text/javascript">
var oFCKeditor = new FCKeditor('content') ;
oFCKeditor.BasePath = "/compass/FCKeditor/" ;
oFCKeditor.Height = 400;
oFCKeditor.ToolbarSet = "Basic11" ;
oFCKeditor.ReplaceTextarea();
</script>
<input type="submit" value="Submit">
</td></tr></table>
</form>
<script type="text/javascript" src="/compass/FCKeditor/fckeditor.js"></script><%----%>
<%--<FCK:editor id="EditorDefault" basePath="/compass/FCKeditor/" height="400" skinPath="/compass/FCKeditor/editor/skins/silver/" > --%>
<%----%>
<%--This is FCKeditor demo!--%>
<%----%>
<%--</FCK:editor>--%>
<form action="l.do" method="post" target="_blank">
<table border="0" width="700"><tr><td>
<textarea id="content" name="content" style="WIDTH: 50%; HEIGHT: 200px">input</textarea>
<script type="text/javascript">
var oFCKeditor = new FCKeditor('content') ;
oFCKeditor.BasePath = "/compass/FCKeditor/" ;
oFCKeditor.Height = 400;
oFCKeditor.ToolbarSet = "Basic11" ;
oFCKeditor.ReplaceTextarea();
</script>
<input type="submit" value="Submit">
</td></tr></table>
</form>
在 servlet类的 uplFile.write(pathToSave);这行下面加上以下程序
request.setAttribute("suc","成功");
request.getRequestDispatcher("test.jsp").forward(request, response);
//在test.jsp页面是这样获取对象
//如果获取属性对象不为空输出打印成功
if(rquest.getAttribute("suc")!=null){
System.out.println("成功");
}