学习struts2的时候碰到tomcat报错:org.apache.jasper.JasperException: Unsupported encoding:  UTF-8,原因是jsp文件中的page指令的问题:

原来jsp中的page指令为:

<%@ page contentType = "text/html; charset = UTF-8" %>

将chaset属性里面的空格都去掉,就行了,改为:

<%@ page conentType = "text/html;charset=UTF-8" %>

相关文章:

  • 2022-01-08
  • 2021-09-11
  • 2022-01-08
  • 2021-07-13
  • 2021-08-07
  • 2021-07-26
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-18
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
相关资源
相似解决方案