日期:2014-05-18  浏览次数:20697 次

我在javabean中写了好多html的语法,在使用struts输出时,不能显示html样子,请问怎么处理
我在javabean中写了好多html的语法,在使用struts输出时,不能显示html样子,请问怎么处理
public   String   PageFooter()  
    {      
      str   +=   "查询到 <font   color=#cc3300> &nbsp; "+getCountTopic()+ " </font> &nbsp;条记录 "+ "&nbsp;&nbsp;共 <font   color=#cc3300> &nbsp; "+getPageCount()+ " </font> &nbsp;页 ";    
}

使用request.setAttribute( "page_foot ",pagetools.PageFooter());
JSP中使用 <bean:write   name= "page_foot "   /> 不能正常显示html样子
输出的都是:查询到 <font   color=#cc3300> &nbsp; "+getCountTopic()+ " </font> &nbsp;条记录 "+ "&nbsp;&nbsp;共 <font   color=#cc3300> &nbsp; "+getPageCount()+ " </font> &nbsp;页

正是郁闷……,我该如何处理呢

------解决方案--------------------
这样写——
<bean:write name= "page_foot " filter= "false " />
------解决方案--------------------
这样写——
<bean:write name= "page_foot " filter= "false " />

支持,测试中