输出的结果页面显示出html 源代码而不是 显示html 的排版后的效果原因:
在bean:write中输出时的filter 设置错误
解决办法:
在bean:write中输出时的filter 设置应为false
例如:
<bean:write name="news" property="contentBody" filter="false" />
如果设置为
<bean:write name="news" property="contentBody" filter="true" />
那么就会把contentBody 的html代码转化
比如如果contentBody中含有<p> 结果就会变成为&lt;p&gt
posted on 2005-12-20 21:09 大狗刀刀 阅读(612) 评论(0)  编辑  收藏 所属分类: JSP学习心得