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>

解决方案 »

  1.   

    //假如我在servlet里面是这样保存对象的
    在 servlet类的  uplFile.write(pathToSave);这行下面加上以下程序
    request.setAttribute("suc","成功");
     request.getRequestDispatcher("test.jsp").forward(request, response);
    //在test.jsp页面是这样获取对象
    //如果获取属性对象不为空输出打印成功
    if(rquest.getAttribute("suc")!=null){
       System.out.println("成功");
     
    }
      

  2.   

    你可以尝试把对象保存在Session里面看看!