`
么可k
  • 浏览: 2161 次
  • 性别: Icon_minigender_1
社区版块
存档分类
最新评论
文章列表
直接进入page1.jsp不会乱码,但是让servlet删除数据库的数据后request.getRequestDispatcher()到page1.jsp页面后页面的中文就全都乱码了,因为没有在PrintWriter out = response.getWriter();的out对象前作编码处理,解决办法就是在PrintWriter out = response.getWriter();前加上request.setCharacterEncoding("UTF-8");  response.setCharacterEncoding("UTF-8");这两句话 ...
 编写程序的时候,不管是自动生成hibernate还是手动编写的什么代码,都有可能出现这个错误:The reference to entity "characterEncoding" must end with the ';' delimiter.。原因可能是系统识别不出某个字符,所以只要改为系统能够识别的就好了,一般是“&",有问题改为“&"就好,若是其他的就照下面的改好了
有时候这句话会出现错误     <%@ taglib prefix="s" uri="/struts-tags"%>,Can not find the tag library descriptor for "/struts-tags,是因为项目少了两个包jstl.jar  和 standard.jar,只要再随便新建一个项目,J2EE选择1.4那个,下面那个JSTL Support勾上,finish,最后把这个项目里的lib文件里那两个压缩包复制到你的项目的lib下面,刷新一下就可以了。
Global site tag (gtag.js) - Google Analytics