晟晟online
2016-07-27 20:08
为什么我添加了<%request.getcharacterencoding("utf-8");> 以后会报错呢? 报错信息:The method getCharacterEncoding() in the type ServletRequest is not applicable for the arguments (String)
<%request.setCharacterEncoding("utf-8") ;%>//(注意是set,不是get)
<jsp:useBean id="myUsers" class="com.po.Users" scope="page"></jsp:useBean>
<%
request.setCharacterEncoding("utf-8");
%>这样的吧
JAVA遇见HTML——JSP篇
248278 学习 · 3071 问题
相似问题