想使用这种类型的 想放在一个表单form里,<textarea rows="6" cols="60" name="sub${question.id}"></textarea>
因为,前面的name="sub${question.id},具有不确定性,所以后台使用Enumeration<String> enumeration = request.getParameterNames(); 
while(enumeration.hasMoreElements()){
String key = enumeration.nextElement();
if(key.startsWith("sub")){
            .....
         }来接收form的各种参数进行操作。求教怎么在jsp里使用这种,
传递里面的内容时候,最好还能符合我后台相应操作的~

解决方案 »

  1.   

    用 fckeditor ,还可以改上面的功能,高度等<script ...>    function init( ){
       
    var oFCKeditor = new FCKeditor('content_1') ;
    oFCKeditor.Height = 280 ;
    oFCKeditor.BasePath = "路径/js/fckeditor/";//oFCKeditor.BasePath   = "/FCKEditTest/fckeditor/";
    oFCKeditor.ReplaceTextarea();
      }
    </script><body onload="init()" > <textarea id="content_1" name="content"  id="content" style="width:285px;">AAAAA</textarea></body>
      

  2.   

    那求推荐好看,使用方便的插件。。
     fckeditor 在开源中国里看到图不太美观啊。。 
      

  3.   

    fckeditor 去官网看了下。发现demo里还是可以。先研究下。。
    如果有其他好的插件,知道的不要吝啬回复啊~