当前位置:网站首页>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" %>
边栏推荐
猜你喜欢
多表的查询
Database Plus 的云上之旅:SphereEx 正式开源 ShardingSphere on Cloud 解决方案
如何做好项目管理
Business Intelligence Platform BI Business Intelligence Analysis Platform How to Choose the Right Business Intelligence Platform BI
redis的安装与应用
如何建立私域流量?私域流量对企业有什么好处?
MySQL ODBC驱动简介
MySQL压缩包方式安装,傻瓜式教学
Wang Xuegang - compiled shipment line file
多版本node的安装与切换详细操作
随机推荐
爬虫——爬虫初识、requests模块
What is NoSQL?Databases for the cloud-scale future
OneNote Tutorial, How to Create More Spaces in OneNote?
AttributeError: module ‘clr‘ has no attribute ‘AddReference‘
Redisson distributed lock source code analysis for high-level use of redis
etcd implements large-scale service governance application combat
redis的安装与应用
多表的查询
uni.navigateBack 中的坑
JVM垃圾回收与性能调优方式
Seleniu screenshots code and assign name to the picture
MySQL事务隔离级别详解
Database triggers and transactions
TiFlash 存储层概览
为什么都推荐使用wordpress, 而不是 phpcms 这些国内的CMS呢?
王学岗-编译出运行的文件
mysql如何从某一行检索到最后
MySQL之创建表的基本操作
cas: 139504-50-0 Maytansine DM1|Mertansine|
3D激光slam:LeGO-LOAM---地面点提取方法及代码分析