illegal to have multiple occurrences of 'contentType' with different values

我就是我 2022-05-16 13:09 153阅读 0赞

Page directive: illegal to have multiple occurrences of ‘contentType’ with different values (old: [text/html; charset=UTF-8], new: [text/html;charset=UTF-8])

当contentType里面分号和charset之间没有空格时会报错:

错误:contentType=”text/html;charset=UTF-8”

正确:contentType=”text/html; charset=UTF-8”

设置JSP源文件和响应正文的字符集编码及MIME类型, contentType的charset是指服务器发送给客户端时的内容编码

发表评论

表情:
评论列表 (有 0 条评论,153人围观)

还没有评论,来说两句吧...

相关阅读