当前位置:网站首页>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" %>
边栏推荐
- Figure robot software digital twin station oil and gas pipelines, oil and gas transportation control platform
- Write a small game in C (three chess)
- prometheus monitoring mysql_galera cluster
- Biotinyl Cystamine | CAS: 128915-82-2 | biotin cysteamine
- 解决IDEA安装安装插件慢问题
- The custom table form
- BGP solves routing black hole through MPLS
- MySQL事务隔离级别详解
- Redis分布式锁入门
- 下一个排列
猜你喜欢

MySQL优化:从十几秒优化到三百毫秒

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

图扑软件数字孪生油气管道站,搭建油气运输管控平台

解决IDEA安装安装插件慢问题

第3周学习:ResNet+ResNeXt

EPSANet: An Efficient Pyramid Split Attention Block on Convolutional Neural Network
![MFC最详细入门教程[转载]](/img/5d/655e75f6b8a547fefe0137a9b11536.png)
MFC最详细入门教程[转载]

IO进程线程->进程->day4
![52. [Bool type input any non-0 value is not 1 version reason]](/img/73/c4e0048c504e0df073a6d07cfec3ab.png)
52. [Bool type input any non-0 value is not 1 version reason]

Database Plus 的云上之旅:SphereEx 正式开源 ShardingSphere on Cloud 解决方案
随机推荐
MySQL事务隔离级别详解
Axial Turbine Privacy Policy
Redisson实现分布式锁
类和对象【下】
2022-7-31 12点 程序爱生活 恒指底背离中,有1-2周反弹希望
Mysql各个大版本之间的区别
如何开启mysql慢查询日志?
血气方刚的年轻小伙竟去做家政小哥,是怎样成功逆袭转行的
mysql 中 in 的用法
Biotin hydrazide HCl|CAS:66640-86-6|生物素-酰肼盐酸盐
三维体尺测量
3D激光slam:LeGO-LOAM---地面点提取方法及代码分析
基本SQL语句(一篇就够了)
redis高阶使用之Redisson分布式锁源码解析
[ansible]playbook结合项目解释执行步骤
Seleniu截图代码以及给图片赋值名字
第3周学习:ResNet+ResNeXt
小说里的编程 【连载之二十五】元宇宙里月亮弯弯
MySQL之创建表的基本操作
MySQL优化之慢日志查询