当前位置:网站首页>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.*" %>
边栏推荐
- Biotin-LC-Hydrazide|CAS:109276-34-8|生物素-LC-酰肼
- Business Intelligence Platform BI Business Intelligence Analysis Platform How to Choose the Right Business Intelligence Platform BI
- 下一个排列
- Seleniu screenshots code and assign name to the picture
- A young man with strong blood and energy actually became a housekeeper. How did he successfully turn around and change careers?
- JSP页面中page指令有哪些属性及方法可使用呢?
- ip地址那点事(二)
- MFC最详细入门教程[转载]
- [OC学习笔记]ARC与引用计数
- mysql启动报错The server quit without updating PID file几种解决办法
猜你喜欢
![[ansible] playbook explains the execution steps in combination with the project](/img/fe/82b8562075fef33490d5aae7e809f5.png)
[ansible] playbook explains the execution steps in combination with the project

node(三) 模块化

原型模式

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

Wang Xuegang - compiled shipment line file

Postman download localization of installation and use

unity pdg 设置隐藏不需要的节点以及实现自动勾选自动加载项

Redisson实现分布式锁

解决IDEA安装安装插件慢问题
![[OC学习笔记]Block三种类型](/img/40/edf59e6e68891ea7c9ab0481fe7bfc.png)
[OC学习笔记]Block三种类型
随机推荐
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
Analysis of software testing technology How far is Turing test from us
OneNote Tutorial, How to Create More Spaces in OneNote?
Seleniu截图代码以及给图片赋值名字
为什么都推荐使用wordpress, 而不是 phpcms 这些国内的CMS呢?
@Repository详解
Biotin hydrazide HCl|CAS:66640-86-6|生物素-酰肼盐酸盐
【开源项目】X-TRACK源码分析
IO process thread -> process -> day4
Biotinyl Cystamine|CAS:128915-82-2|生物素半胱胺
CASA模型、CENTURY模型应用与案例分析
Button to control the running water light (timer)
Shell变成规范与变量
mysql去除重复数据
BGP通过MPLS解决路由黑洞
小说里的编程 【连载之二十二】元宇宙里月亮弯弯
LeetCode第三题(Longest Substring Without Repeating Characters)三部曲之一:解题思路
oracle的sql改成mysql版本
C Language Basics_Union
离线部署通过tiup 配置好topology.yaml文件指定PD TV TIDBserver 是不是会自动在其他机器创建好对应得模块?