当前位置:网站首页>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" %>
边栏推荐
- 商业智能平台BI 商业智能分析平台 如何选择合适的商业智能平台BI
- @Repository详解
- Redisson报异常attempt to unlock lock, not locked by current thread by node id解决方案
- 【C】关于柔性数组.简要的谈谈柔性数组
- Database triggers and transactions
- Flink 系统性学习笔记系列
- R语言plotly可视化:plotly可视化回归模型实际值和回归预测值的散点图分析回归模型的预测效能、一个好的模型大部分的散点在对角线附近(predicted vs actual)
- PyCharm usage tutorial (more detailed, picture + text)
- Redisson实现分布式锁
- 文章解读 -- FlowNet3D:Learning Scene Flow in 3D Point Clouds
猜你喜欢
随机推荐
【电子电路】长按键拉低电平,适用在有休眠机制的MCU但是没有看门狗,一个按键多个功能场景下使用
High imitation [Huawei consumer business official website] and wonderful animation analysis: practice embedding JS code in low-code platform
如何将项目部署到服务器上(全套教程)
C语言基础_结构体
ip地址那点事(二)
JSP页面中page指令contentPage/pageEncoding具有什么功能呢?
day_05 time 模块
【开源项目】X-TRACK源码分析
下一个排列
Detailed explanation of calculation commands in shell (expr, (()), $[], let, bc )
Ansible learning summary (11) - detailed explanation of forks and serial parameters of task parallel execution
cas: 139504-50-0 Maytansine DM1|Mertansine|
为什么都推荐使用wordpress, 而不是 phpcms 这些国内的CMS呢?
node(三) 模块化
C语言_指针
科技云报道:实现元宇宙,英伟达从打造基础建设平台开始
houdini 求出曲线的法向 切线以及副法线
Flink 监控指南 被动拉取 Rest API
QT web development - Notes - 3
Analysis of software testing technology How far is Turing test from us