当前位置:网站首页>What is the function of page directive contentPage/pageEncoding in JSP page?
What is the function of page directive contentPage/pageEncoding in JSP page?
2022-08-02 08:38:00 【qq_25073223】
From:
The page directive contentPage in the JSP pageWhat function does /pageEncoding have?
The following will describe the functions of the contentPage and pageEncoding directives of the page directive, as follows:
The function of the contentPage and pageEncoding directives of the page directive: used to set the encoding of the pagelike:The contentType property is used to set the Content-Type response headerSpecifies that the document sent to the client program is of MIME type
How to set contentType
Method 1: Query the MIME type in the tomca installation directory /conf/web.xml
doc application/msword
Method 2: Chinese settings for jsp pages
<%@ page language="Java" contentPage="application/msword; charset = GBK" %>---Set the page to Chinese<%@ page pageEncoding="GBK" %>
边栏推荐
- PyCharm usage tutorial (more detailed, picture + text)
- @RequestParam使用
- 3D激光slam:LeGO-LOAM---地面点提取方法及代码分析
- 小说里的编程 【连载之二十一】元宇宙里月亮弯弯
- The custom table form
- Biotin-C6-amine|N-生物素基-1,6-己二胺|CAS:65953-56-2
- Flink 监控指南 被动拉取 Rest API
- 商业智能平台BI 商业智能分析平台 如何选择合适的商业智能平台BI
- [ansible]playbook结合项目解释执行步骤
- Codeforces Round #811 (Div. 3)无DF
猜你喜欢
A young man with strong blood and energy actually became a housekeeper. How did he successfully turn around and change careers?
cas: 139504-50-0 Maytansine DM1|Mertansine|
[OC学习笔记]ARC与引用计数
BGP solves routing black hole through MPLS
prometheus monitoring mysql_galera cluster
Shell变成规范与变量
C语言基础_结构体
小康股份更名赛力斯,如何走出一条高端产品的“丝绸之路”?
Biotin-EDA|CAS:111790-37-5| 乙二胺生物素
Biotin hydrazide HCl|CAS:66640-86-6|Biotin-hydrazide hydrochloride
随机推荐
mysql启动报错The server quit without updating PID file几种解决办法
nodejs 简介
Redisson的看门狗机制
Three types of [OC learning notes] Block
WebGPU 导入[2] - 核心概念与重要机制解读
[OC学习笔记]weak的实现原理
Biotin-EDA|CAS:111790-37-5| Ethylenediamine biotin
Biotin-C6-amine|N-生物素基-1,6-己二胺|CAS:65953-56-2
shell中计算命令详解(expr、(())、 $[]、let、bc )
Analysis of software testing technology How far is Turing test from us
如何开启mysql慢查询日志?
MySQL压缩包方式安装,傻瓜式教学
.NET静态代码织入——肉夹馍(Rougamo) 发布1.1.0
Biotin - LC - Hydrazide | CAS: 109276-34-8 | Biotin - LC - Hydrazide
USACO美国信息学奥赛竞赛12月份开赛,中国学生备赛指南
Shell becomes canonical and variable
MFC最详细入门教程[转载]
血气方刚的年轻小伙竟去做家政小哥,是怎样成功逆袭转行的
Write a small game in C (three chess)
oracle的sql改成mysql版本