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是指服务器发送给客户端时的内容编码。
还没有评论,来说两句吧...