illegal to have mutiple occurrences of contentType with different values
2009-11-04 18:49
411 查看
当一个jsp页面包含另外一个jsp页面或者HTML页面时,如果出现了乱码,或者是出现了“org.apache.jasper.JasperException: /stuHead.html(2,0) Page directive: illegal to have multiple occurrences of contentType with different values (old: text/html;charset=gb2312, new: text/html; charset=gb2312)”,这样的错误,就应该把把包含页面与被包含页面的@page指令里面的contentType写成一致,一定要一致.我的错误是用了两个 <%@ page contentType="text/html; charset=utf-8" %> <%@ page contentType="text/html; charset=GB2312" %> 这样系统不知道你到底要用哪个编码了! |
相关文章推荐
- illegal to have multiple occurrences of contentType with different values (old: text/html; charset=
- JSP 解决illegal to have multiple occurrences of contentType with different values错误
- Page directive: illegal to have multiple occurrences of contentType with different values
- 解决报错 Page directive: illegal to have multiple occurrences of contentType with different values (old:
- JSP 解决illegal to have multiple occurrences of contentType with different values错误
- JSP 解决illegal to have multiple occurrences of contentType with different values错误
- 解决illegal to have multiple occurrences of contentType with different values错误
- Page directive: illegal to have multiple occurrences of contentType with different values
- illegal to have multiple occurrences of contentType with different values (old: text/html; charset=UTF-8, new: text/html; charset=utf-8)
- 错误记录:illegal to have multiple occurrences of contentType with different values
- illegal to have multiple occurrences of contentType with different values 解决
- Page directive: illegal to have multiple occurrences of contentType with different values
- Page directive: illegal to have multiple occurrences of contentType with different values (old: text
- JSP页面报错illegal to have multiple occurrences of contentType with different values
- JSP 解决illegal to have multiple occurrences of contentType with different values错误
- JSP 解决illegal to have multiple occurrences of contentType with different values错误
- illegal to have multiple occurrences of contentType with different values
- Page directive: illegal to have multiple occurrences of contentType with different values (old: text
- CXF报错[1 counts of IllegalAnnotationExceptions]and[Two classes have the same XML type name]and[Use @XmlType.name and @XmlType.namespace to assign different names to them]
- illegal to have multiple occurrences of 'contentType' with different values (old: [text/html; chars