当前位置:网站首页>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.*" %>
边栏推荐
猜你喜欢

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

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

【论文阅读】Distilling the Knowledge in a Neural Network

文章解读 -- FlowNet3D:Learning Scene Flow in 3D Point Clouds

Biotin-C6-amine|N-biotinyl-1,6-hexanediamine|CAS: 65953-56-2
![[ansible]playbook结合项目解释执行步骤](/img/fe/82b8562075fef33490d5aae7e809f5.png)
[ansible]playbook结合项目解释执行步骤

How Engineers Treat Open Source --- A veteran engineer's heartfelt words

王学岗-编译出运行的文件
What is NoSQL?Databases for the cloud-scale future

原型模式
随机推荐
OneNote 教程,如何在 OneNote 中创建更多空间?
CASA模型、CENTURY模型应用与案例分析
下一个排列
Seleniu screenshots code and assign name to the picture
mysql去除重复数据
三维体尺测量
day_05模块
MySQL压缩包方式安装,傻瓜式教学
Figure robot software digital twin station oil and gas pipelines, oil and gas transportation control platform
轴流式水轮机隐私政策
ip地址那点事(二)
Shell变成规范与变量
@Repository详解
小说里的编程 【连载之二十一】元宇宙里月亮弯弯
小说里的编程 【连载之二十五】元宇宙里月亮弯弯
The custom table form
Flink 监控指南 被动拉取 Rest API
pnpm的安装与使用
R language plotly visualization: use the plotly visualization model to predict the true positive rate (True positive) TPR and false positive rate (False positive) FPR curve under different thresholds
小说里的编程 【连载之二十三】元宇宙里月亮弯弯