当前位置:网站首页>JSP页面中page指令contentPage/pageEncoding具有什么功能呢?
JSP页面中page指令contentPage/pageEncoding具有什么功能呢?
2022-08-02 08:01:00 【qq_25073223】
转自:
JSP页面中page指令contentPage/pageEncoding具有什么功能呢?
下文将讲述page指令的contentPage及pageEncoding指令的功能简介说明,如下所示:
page指令的contentPage及pageEncoding指令的功能: 用于设置页面的编码
如:
contentType属性用于设置Content-Type响应报头
指定发送到客户程序的文档为MIME类型
设置contentType的方法
方式1:在tomca安装目录/conf/web.xml查询MIME类型
<mime-mapping> <extension>doc</extension> <mime-type>application/msword</mime-type> </mime-mapping>
方式2:jsp页面中文设置
<%@ page language="Java" contentPage="application/msword; charset = GBK" %> ---设置页面为中文 <%@ page pageEncoding="GBK" %>
边栏推荐
- USACO美国信息学奥赛竞赛12月份开赛,中国学生备赛指南
- 52.【bool类型输入任何非0数值不为1的版本原因】
- WebForm DropDownList bind year and month respectively
- Mysql各个大版本之间的区别
- MySQL Workbench 安装及使用
- Database triggers and transactions
- WebGPU 导入[2] - 核心概念与重要机制解读
- Application and case analysis of CASA model and CENTURY model
- MySQL事务隔离级别详解
- 52. [Bool type input any non-0 value is not 1 version reason]
猜你喜欢
USACO美国信息学奥赛竞赛12月份开赛,中国学生备赛指南
解决IDEA安装安装插件慢问题
暂未找到具体原因但解决了的bug
HCIP9_BGP增加实验
小康股份更名赛力斯,如何走出一条高端产品的“丝绸之路”?
A young man with strong blood and energy actually became a housekeeper. How did he successfully turn around and change careers?
研发过程中的文档管理与工具
Biotin-C6-amine|N-biotinyl-1,6-hexanediamine|CAS: 65953-56-2
PostgreSQL学习总结(11)—— PostgreSQL 常用的高可用集群方案
BGP solves routing black hole through MPLS
随机推荐
MySQL优化:从十几秒优化到三百毫秒
18、优化网站性能
原型模式
uniapp 禁止默认返回事件
小说里的编程 【连载之二十一】元宇宙里月亮弯弯
@Repository详解
Ansible learning summary (11) - detailed explanation of forks and serial parameters of task parallel execution
AttributeError: module ‘clr‘ has no attribute ‘AddReference‘
[ansible] playbook explains the execution steps in combination with the project
Flink 系统性学习笔记系列
node(三) 模块化
数据表格化打印输出
WebGPU 导入[2] - 核心概念与重要机制解读
优炫数据库的逻辑复制怎么样?
Mysql Mac版下载安装教程
读入、输出优化
7.联合索引(最左前缀原则)
Biotinyl Cystamine | CAS: 128915-82-2 | biotin cysteamine
小说里的编程 【连载之二十二】元宇宙里月亮弯弯
[ansible]playbook结合项目解释执行步骤