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

 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是指服务器发送给客户端时的内容编码

猜你喜欢

转载自blog.csdn.net/qq_33378853/article/details/81905435
今日推荐