日期:2014-05-16  浏览次数:20428 次

Textarea 获取数据库中的内容格式问题的解决方法
我这种的解决方案关键是两点:
第一,在查看jsp页面中的textArea项目中加入如下代码:

<textarea name="name" cols="90" readonly wrap="PHYSICAL" style="border: none;overflow: visible;height: auto;"><c:out value="${sessionScope.otcObject.name}" /></textarea>



第二,不要留任何空格在<textarea>和</textarea>之间。

这样就好了,祝您好运!