illegal to have multiple occurrences of contentType with different values 解决
2017-01-16 12:09
537 查看
在网上查到说是:“包含页面与被包含页面的@page指令里面的contentType不一致,仔细检查两个文件第一行的 @page.....”
我自己的情况是:jsp自动生成的页面内page标签中字符藉为ISO-8859-1. (html页面中黑体、加粗那行)
而我整个工程页面默认引用页面的字符藉是UTF-8.所以改为和别的页面一致,就不报错了。
我自己的情况是:jsp自动生成的页面内page标签中字符藉为ISO-8859-1. (html页面中黑体、加粗那行)
而我整个工程页面默认引用页面的字符藉是UTF-8.所以改为和别的页面一致,就不报错了。
<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" %> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Insert title here</title> </head> <body> 这是广告 页面。。。。 </body> </html>
相关文章推荐
- CSS3动画那么强,requestAnimationFrame还有毛线用?
- requestAnimationFrame,Web中写动画的另一种选择
- Response/Request的概述及用法
- [iOS]UIButton同时添加image和title后子视图位置管理
- UIFragment的简单使用
- Vue 响应式总结
- Android源码 从runOnUiThread聊聊消息机制
- wait queue 6
- IOS UICollectionView 分组使用
- select标签下option标签里value属性有什么用以及和text的区别
- Hdu4632 Palindrome subsequence
- 聊聊并发(六)——ConcurrentLinkedQueue的实现原理分析
- minigui 自定义按键
- wait queue 5
- Vue.js 快速搭建
- 38、Power Query-背后的贤内助"M"语言
- vue-auto-focus:控制自动聚焦行为的vue指令
- 超全的关于UITabview 使用介绍
- angular 使用 ui-router 设计网页
- 环装序列 (Circular Sequence, ACM/ICPC Seoul 2004, UVa1584)