在学<bean:include>时遇到了问题
我是struts的初学者,在学 <bean:include> 时遇到了问题,
我做了个index.jsp页,在页中用了一下代码
<bean:include id= "var1 " page= "/other.do "/>
<bean:include id= "var2 " forward= "test1 "/>
<bean:include id= "var3 " href= "http://localhost:8080/Struts01 "/>
输出来是乱码,那位高手给帮忙解决,多谢
另外我的页中有 <%@ page contentType = "text/html;charset = gb2312 " language = "java "%> 和 <% request.setCharacterEncoding( "gb2312 ");%>
------解决方案--------------------用
<bean:write name= "var1 " filter= "false "/>
<bean:write name= "var2 " filter= "false "/>
<bean:write name= "var3 " filter= "false "/>
试试,filter为boolean类型,如果false不好使那就是true了
------解决方案--------------------UTF试一试