当前位置:网站首页>jsp学习之(二)---------jsp脚本元素和指令
jsp学习之(二)---------jsp脚本元素和指令
2022-06-22 15:22:00 【xiao_zhu_ting_feng】
1.0 jsp脚本元素
脚本元素构成
1.1表达式格式
<%=java表达式%>
不可有空格
不可插入语句
必须能求值
用于打印变量或者输出值。
1.2 Scriptlet
语法格式:<%java代码%>
不可有空格
不能定义类和方法
在当前页有效,不会被其他线程共享
可以在里面写java的代码。定义java变量以及书写java语句。
1.3 声明
语法格式 <%!函数或常量%>
不可有空格
在整个页面都有效,会被多个线程共享
可以在里面定义全局变量以及方法,类。
2.0 Jsp声明和jsp scriptlet的区别
count1一直在累加,但count2的值不变
2.1 Jsp指令
page指令常见属性
边栏推荐
猜你喜欢
随机推荐
CUMT study diary - quick notes of digital image processing examination
面试题之JS判断数据类型的方法
nio服务多线程版本
Machine learning notes - Hagrid - Introduction to gesture recognition image data set
接口幂等性设计
SAP ABAP 中 OpenSQL和Native SQL-05 本教程的目的不是教您 SQL 或数据库概念
SAP教程中的ALV报告 - ABAP列表查看器-012
Odoo local document function development record
[Shanda conference] application setting module
The odoo system sets priorities for the views independently developed by the original model
What is SAP ABAP? Type, ABAP full form and meaning
学习量子纠缠的可解释表示,该深度生成模型可直接应用于其他物理系统
【C语言】库函数qsort的使用
音视频基础知识|ANS 噪声抑制原理解析
GD32F4xx MCU 驱动mcp2515扩展CAN接口
odoo部署到服务器并配置为服务
19、 Xv6 context switching (implementation of context switching; encapsulation and recovery of state machine)
shell学习
面对默认导入失败的情况
[Shanda conference] use typescript to reconstruct the project















