当前位置:网站首页>What is the function of the import command of the page directive in JSP?
What is the function of the import command of the page directive in JSP?
2022-08-02 08:38:00 【qq_25073223】
From:
In JSPWhat is the function of the import command of the page directive?
Introduction to jsp:
The full name of JSP is Java Server Pages, which is a dynamic web page technology. JSP is actually a file formed after inserting java code and JSP tags into html, and the file name ends with .jsp.In fact, JSP is a servlet.
Writing html in servlet is more painful, and writing JSP is like writing html, but compared with html, html can only provide users with static data, that is, static pages, and Jsp technology allows java to be nested in pagescode to provide users with dynamic data to form dynamic pages.It should be noted that it is best to only write java code for dynamic output in JSP.
Workflow of JSP
The process of converting JSP files into .java files and compiling them into .class files is all done by tomcat. There is a translation engine inside tomcat.When the JSP page is accessed for the first time, the translation engine converts it into a .java file and compiles a .class file.Then run the class file again.
The html code in JSP will be translated into out.write() in servlet
The following author describes the introduction of the import command function of the page directive in JSP, as follows:
import command function: Import multiple packages Notes: 1. The import command can specify multiple values at the same time, and multiple values can be used to separate them2. The import command can appear multiple times in the documentExample:
<%@ page import="java.util.*","java.io.*","java.awt.*" %>or<%@ page import="java.util.*"%><%@ page import="java.io.*","java.awt.*" %>
边栏推荐
- In a recent build figure SLAM, and locate the progress
- C语言_条件编译
- mysql启动报错The server quit without updating PID file几种解决办法
- Database Plus 的云上之旅:SphereEx 正式开源 ShardingSphere on Cloud 解决方案
- JSP中page指令的import命令具有什么功能呢?
- CASA模型、CENTURY模型应用与案例分析
- 抓包工具Charles修改Response步骤
- 软件测试技术之解析图灵测试离我们还有多远
- Flink 监控指南 被动拉取 Rest API
- 小说里的编程 【连载之二十四】元宇宙里月亮弯弯
猜你喜欢

pnpm: Introduction

Biotin-LC-Hydrazide|CAS:109276-34-8|生物素-LC-酰肼

第3周学习:ResNet+ResNeXt

C语言基础_结构体

EPSANet: An Efficient Pyramid Split Attention Block on Convolutional Neural Network

Mysql Mac版下载安装教程

PyCharm使用教程(详细版 - 图文结合)

PostgreSQL学习总结(11)—— PostgreSQL 常用的高可用集群方案

52.【bool类型输入任何非0数值不为1的版本原因】

Biotin-C6-amine|N-biotinyl-1,6-hexanediamine|CAS: 65953-56-2
随机推荐
小说里的编程 【连载之二十三】元宇宙里月亮弯弯
Ansible 学习总结(11)—— task 并行执行之 forks 与 serial 参数详解
R language plotly visualization: plotly visualizes the scatter plot of the actual value of the regression model and the predicted value of the regression, analyzes the prediction performance of the re
Redisson的看门狗机制
MySQL 中 count() 和 count(1) 有什么区别?哪个性能最好?
IO进程线程->进程->day4
三维体尺测量
下一个排列
52.【bool类型输入任何非0数值不为1的版本原因】
Biotin-LC-Hydrazide|CAS:109276-34-8|生物素-LC-酰肼
BGP solves routing black hole through MPLS
原型模式
C语言基础_共用体
设置 height: auto 却无法触发 transition 动画的解决方案
[OC学习笔记]Block三种类型
@FeignClient configuration参数配置
3D激光slam:LeGO-LOAM---地面点提取方法及代码分析
mysqldump --set-gtid-purged=OFF
Business Intelligence Platform BI Business Intelligence Analysis Platform How to Choose the Right Business Intelligence Platform BI
In a recent build figure SLAM, and locate the progress