JSP处理乱码异常
来源:互联网 发布:mac实用工具怎么打开 编辑:程序博客网 时间:2024/04/29 10:42
jsp的错误:
org.apache.jasper.JasperException: /Conn.jsp(1,2) Page directive: illegal to have multiple occurrences of contentType with different values (old: text/html; charset=gb2312, new: text/html;charset=gb2312)org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
left.jsp(1,2) Page directive: illegal to have multiple occurrences of contentType with different values (old: text/html;charset=UTF-8, new: text/html; charset=UTF-8)
错误主要看这句: (old: text/html;charset=UTF-8, new: text/html; charset=UTF-8)
正确做法是:被包含的jsp,要与当前页<%@ page/>内容要一致,不允许contentType="text/html; charset=UTF-8",有空格。
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>//这是我错误的写法。
<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>//正确的写法
- JSP处理乱码异常
- JSP内置对象、异常处理与乱码问题
- JSP中文乱码处理
- JSP中文乱码处理
- JSP中文乱码处理
- jsp乱码处理综合
- jsp中文乱码处理
- Jsp处理乱码问题
- Jsp中文乱码处理
- jsp处理乱码函数
- JSP乱码处理大全
- jsp乱码处理
- jsp乱码处理问题
- jsp中文乱码处理
- jsp中文乱码处理
- JSP乱码处理
- JSP乱码处理
- jsp乱码处理
- 第十九章——使用资源调控器管理资源(3)——监控资源调控器
- Hyper V虚拟机断电,IIS站点无法访问,SharePoint 配置数据库无法访问,
- php ajax 实现三级省市区联动
- 精彩工作,快乐生活!
- C#.net 地图控件开发(九) 矢量图层与绘制FeatureLayer
- JSP处理乱码异常
- R做Tukey检验
- orcal 总结(1)
- PHP页面静态化实现
- 4.编写linux2.6.32.2系统调用
- asp如何对access数据库的数据进行分页
- Get与Post的区别
- Oracle Group by的语法
- linux fork函数浅析