当前位置:网站首页>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" %>
边栏推荐
- redis的安装与应用
- Technology Cloud Report: To realize the metaverse, NVIDIA starts from building an infrastructure platform
- MySQL事务(transaction) (有这篇就足够了..)
- How Engineers Treat Open Source --- A veteran engineer's heartfelt words
- 构建Flink第一个应用程序
- etcd implements large-scale service governance application combat
- Redis分布式锁入门
- 按键控制流水灯(计时器)
- [OC学习笔记]Block三种类型
- AcWing 2811. 最长公共子串(后缀自动机 fa 指针的性质)
猜你喜欢

2022-7-31 12点 程序爱生活 恒指底背离中,有1-2周反弹希望

按键控制流水灯(计时器)

Write a small game in C (three chess)

研发过程中的文档管理与工具

Business Intelligence Platform BI Business Intelligence Analysis Platform How to Choose the Right Business Intelligence Platform BI

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

Shell becomes canonical and variable

用C写小游戏(三子棋)

(Note)阿克西斯ACASIS DT-3608双盘位硬盘阵列盒RAID设置

Figure robot software digital twin station oil and gas pipelines, oil and gas transportation control platform
随机推荐
mysql去除重复数据
MySQL Workbench 安装及使用
Postgres horizontal table, automatically create partitions, table by time
暂未找到具体原因但解决了的bug
I.MX6U-ALPHA开发板(EPIT定时器实验)
The crawler video crawl tools you get
Redisson distributed lock source code analysis for high-level use of redis
oracle的sql改成mysql版本
Spark 系统性学习笔记系列
构建Flink第一个应用程序
MySQL ODBC驱动简介
PostgreSQL学习总结(11)—— PostgreSQL 常用的高可用集群方案
(Note)阿克西斯ACASIS DT-3608双盘位硬盘阵列盒RAID设置
mysqldump --set-gtid-purged=OFF
etcd实现大规模服务治理应用实战
多版本node的安装与切换详细操作
Mysql各个大版本之间的区别
mysql 中 in 的用法
下一个排列
OneNote 教程,如何在 OneNote 中创建更多空间?