当前位置:网站首页>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.*" %>
边栏推荐
- @RequestBody使用
- Biotin hydrazide HCl|CAS:66640-86-6|Biotin-hydrazide hydrochloride
- Redisson实现分布式锁
- @PostConstruct注解详解
- A little bit of knowledge - why do not usually cook with copper pots
- nodejs 简介
- 【特别提醒】订阅此专栏的用户请先阅读本文再决定是否需要购买此专栏
- Database Plus 的云上之旅:SphereEx 正式开源 ShardingSphere on Cloud 解决方案
- Biotin-C6-amine|N-biotinyl-1,6-hexanediamine|CAS: 65953-56-2
- QT web 开发 - 笔记 - 3
猜你喜欢

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

IO进程线程->进程->day4

pnpm: Introduction

用C写小游戏(三子棋)

A young man with strong blood and energy actually became a housekeeper. How did he successfully turn around and change careers?

Redisson的看门狗机制

Shell变成规范与变量

pycharm的基本使用教程(1)

postman下载安装汉化及使用

2022-7-31 12点 程序爱生活 恒指底背离中,有1-2周反弹希望
随机推荐
mysqldump --set-gtid-purged=OFF
day_05 time 模块
解决IDEA安装安装插件慢问题
C Language Basics_Union
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
Postman download localization of installation and use
Biotinyl Cystamine|CAS:128915-82-2|生物素半胱胺
(Note)阿克西斯ACASIS DT-3608双盘位硬盘阵列盒RAID设置
Ansible learning summary (11) - detailed explanation of forks and serial parameters of task parallel execution
JSP中page指令的import命令具有什么功能呢?
High imitation [Huawei consumer business official website] and wonderful animation analysis: practice embedding JS code in low-code platform
工程师如何对待开源 --- 一个老工程师的肺腑之言
CASA模型、CENTURY模型应用与案例分析
Redisson distributed lock source code analysis for high-level use of redis
[ansible]playbook结合项目解释执行步骤
Axial Turbine Privacy Policy
ip地址那点事(二)
Figure robot software digital twin station oil and gas pipelines, oil and gas transportation control platform
IO process thread -> process -> day4
What is NoSQL?Databases for the cloud-scale future