当前位置:网站首页>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指令常见属性
边栏推荐
- 【微信小程序获取自定义tabbar的高度】绝对可用!!!
- Cmake tutorial series-00-introduction
- 【小程序项目开发-- 京东商城】uni-app开发之分包配置
- Basic knowledge of audio and video | analysis of ANS noise suppression principle
- 畅享高性能计算!天翼云HPC解决方案来了
- 使用stream api替代sql
- C语言贪吃蛇
- SAP ABAP 数据字典教程 SE11:表、锁定对象、视图和结构 -03
- [Shanda conference] definitions of some basic tools
- Swift -- 保存打印日志到沙盒
猜你喜欢

【C语言】库函数qsort的使用

odoo本地文档功能开发记录

'不敢去怀疑代码,又不得不怀疑代码'记一次网络请求超时分析

【C语言深度解剖】关键字if&&else&&bool类型

Ironsource Luna offers a limited time discount for Apple search ads and enjoys 3 months of free service upon registration

2022年中国重卡智能化升级专题研究

SAP ABAP table control and example-07

超出文本部分用省略号表示

6.GUI(图形,填充)

【微信小程序封装底部弹出框】一
随机推荐
odoo部署到服务器并配置为服务
Runtime -- explore the nature of classes, objects, and classifications
接口幂等性设计
SAP script tutorial: se71, se78, SCC1, vf03, so10-013
[Shanda conference] peer connection based on webrtc
SAP ABAP 中 OpenSQL和Native SQL-05 本教程的目的不是教您 SQL 或数据库概念
SAP ABAP dialog programming tutorial: module pool in -09
GD32F4xx MCU 驱动mcp2515扩展CAN接口
SAP ABAP data types, operators and editors-02
CUMT study diary - quick notes of digital image processing examination
SAP 中的 ABAP 查询教程:SQ01、SQ02、SQ03-017
二叉树练习第二弹
解决mysql远程登录报权限问题
find命令使用
NiO file and folder operation examples
JS获取数据类型方法总结
SAP ABAP 中的 Smart Forms-014
Deploy odoo to the server and configure it as a service
SAP abap 数据类型,操作符和编辑器-02
SAP web service 无法使用 SOAMANAGER 登陆到SOA管理页面






