当前位置:网站首页>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" %>
边栏推荐
- prometheus monitoring mysql_galera cluster
- Seleniu screenshots code and assign name to the picture
- R语言plotly可视化:使用plotly可视化模型预测真阳性率(True positive)TPR和假阳性率(False positive)FPR在不同阈值(threshold)下的曲线
- IO进程线程->进程->day4
- metabase访问adb mysql 如何控制会话时区??
- 牛客2022 暑期多校4 D Jobs (Easy Version)(递推优化策略)
- Stop mental exhaustion Daily sharing
- [OC学习笔记]Block三种类型
- MySQL优化之慢日志查询
- Mysql各个大版本之间的区别
猜你喜欢

BGP通过MPLS解决路由黑洞

设置工作模式与环境(中):建造二级引导器

【电子电路】长按键拉低电平,适用在有休眠机制的MCU但是没有看门狗,一个按键多个功能场景下使用

Redisson实现分布式锁

cas: 139504-50-0 Maytansine DM1|Mertansine|

prometheus monitoring mysql_galera cluster

MySQL优化:从十几秒优化到三百毫秒
![MFC最详细入门教程[转载]](/img/5d/655e75f6b8a547fefe0137a9b11536.png)
MFC最详细入门教程[转载]

Figure robot software digital twin station oil and gas pipelines, oil and gas transportation control platform

OneNote 教程,如何在 OneNote 中创建更多空间?
随机推荐
血气方刚的年轻小伙竟去做家政小哥,是怎样成功逆袭转行的
积分商城商品供应商选择的三个要求
近期在SLAM建图和定位方面的进展
构建Flink第一个应用程序
Ansible 学习总结(11)—— task 并行执行之 forks 与 serial 参数详解
nodejs 简介
mysql去除重复数据
MySQL Workbench 安装及使用
Ansible learning summary (11) - detailed explanation of forks and serial parameters of task parallel execution
IO process thread -> process -> day4
轴流式水轮机隐私政策
Codeforces Round #811 (Div. 3)无DF
WebRTC系列-SDP之编码信息收集
TiFlash 存储层概览
What is NoSQL?Databases for the cloud-scale future
解决IDEA安装安装插件慢问题
Seleniu screenshots code and assign name to the picture
R语言plotly可视化:plotly可视化回归模型实际值和回归预测值的散点图分析回归模型的预测效能、一个好的模型大部分的散点在对角线附近(predicted vs actual)
Biotinyl Cystamine | CAS: 128915-82-2 | biotin cysteamine
Biotin-EDA|CAS:111790-37-5| 乙二胺生物素