求助在jsp6.0中
在jsp6.0中有如下代码:<%@page language="java" contentType="text/html;charset=Gb2312"%>
<%@page import="kjb.main.DealString"%>
在Tomcat运行以下错误:
org.apache.jasper.JasperException: /frame.jsp(1,1) Page directive: illegal to have multiple occurrences of contentType with different values (old: text/html;charset=GBK, new: text/html;charset=Gb2312)
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:236)
--------------------编程问答-------------------- 编码格式不一致,改为charset=GBK" --------------------编程问答-------------------- th different values (old: text/html;charset=GBK, new: text/html;charset=Gb2312)
这句话的意思好像是你的最初设置的编码是gbk,现在改为了gb2312,这两个编码发生冲突的 --------------------编程问答--------------------
编码呀编码
补充:Java , Web 开发