fckeditor 在前台页面里如何获取,从数据库里取到的值?

这个页面里这样的

    <FCK:editor id="info_demo" basePath="../fckeditor/" width="100%" height="500"
 toolbarSet = "Default" >          
    </FCK:editor>
    <input type="hidden" name="info_demo" value="">
    <script language="javascript" type="text/javascript">
         var oEditor = FCKeditorAPI.GetInstance('info_demo') ;
         var str = oEditor.GetXHTML();
         form.info_demo.value=str;
     </script>


我从数据库里取得一个"info_demo"值,如何能把它返回到页面上?

我曾把取到的值写到下面"X"的地方,但是显示出来的都是html代码,我想可能这个方法不对.
<FCK:editor id="info_demo" basePath="../fckeditor/" width="100%" height="500" toolbarSet = "Default" > 
X       
</FCK:editor>
这个问题如何解决?

修正:

String con = (String) request.getAttribute("content");

 <td colspan="5">
    <textarea id="content" name="content" style="WIDTH: 100%; HEIGHT: 400px"><%=con%>
     </textarea>
     <script type="text/javascript">
        var oFCKeditor = new FCKeditor('content') ;
        oFCKeditor.BasePath = "../../fckeditor/" ;
        oFCKeditor.Height = 500;
        oFCKeditor.ToolbarSet = "Default";         
        oFCKeditor.ReplaceTextarea();		 	         
      </script></td>

methed B: ADD+
 
<script type="text/javascript" src="../../fckeditor/fckeditor.js"></script> 

      <td colspan="5"><textarea id="content" name="content" style="WIDTH: 100%;
 HEIGHT: 400px"></textarea>
        <script type="text/javascript">
           var oFCKeditor = new FCKeditor('content') ;
           oFCKeditor.BasePath = "../../fckeditor/" ;
           oFCKeditor.Height = 500;
           oFCKeditor.ToolbarSet = "Default";         
           oFCKeditor.ReplaceTextarea();		 	         
         </script>        
       </td>

你可能感兴趣的:(java,html,fckeditor)