- 1、本文档共31页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
JSP语法(国外英文资料)
JSP语法(国外英文资料)
JSP syntax
(1) -- HTML comments
HTML comments display an annotation on the client side.
JSP syntax
! -- comment [ % = expression % ]
Example 1
! This file displays the user login screen
Generate the same data in the HTML source code on the client side:
! This file displays the user login screen
Example 2
! This page was loaded on new java.util.date ()).tolocalestring ()
The HTML source code in the client side is shown as:
! -- This page was loaded on January 1, 2000 - -
describe
This comment is similar to HTML, which is what you can see in the view source.
The only difference is that you can use expressions in this annotation (see example 2). This expression is indeterminate, its different from the page, you can use any expression, as long as its legal.
(2) -- hidden comments
Hide the comments
Write in the JSP program, but not to the customer.
JSP syntax
% - comment - %
Example:
% @page language = Java %
HTML
head title A Comment Test / title / head
The body
h2 A Test of Comments / h2
This comment will not be visible in the page source
The / body
The / HTML
describe
Characters that are marked with hidden comments are ignored when the JSP is compiled. This comment is useful when you want to hide or annotate your JSP program.
JSP compiler will not between % - and - % statement is compiled, it will not display in the client browser, also wont see in the source code between % -- -- % , you can write any comment statements, but cant use -- % , if you must use please use -- % \ .
JSP syntax (3) - declarations
Declare the valid variables and methods in the JSP program
JSP syntax
The %! Declaration; [declaration;] +... %
example
The %! Int I = 0; %
The %! Int a, b, c; %
The %! Circle a = new Circle (2.0); %
describe
Declare the variables and methods you will use in the JSP program. You must do the same, otherwise you will make a mistake.
You can declare multiple variables and methods at once, just by saying ; At the end, of
您可能关注的文档
- 93消防公共题(国外英文资料).doc
- ae shatter 详解(国外英文资料).doc
- AIX中调整VMM(国外英文资料).doc
- Ajax 一个建立Web应用的新途径(国外英文资料).doc
- allegro使用小技巧(国外英文资料).doc
- algor软件的线性接触分析实例(国外英文资料).doc
- alt加小键盘数字(国外英文资料).doc
- AIX 里的crontab如何使用(国外英文资料).doc
- android多点触摸(国外英文资料).doc
- ansys 资料总汇(国外英文资料).doc
- 户外运动装备租赁行业服务创新案例汇编报告.docx
- 探索2025年半导体设备国产化技术创新与应用前景.docx
- 房地产企业数字化营销转型策略:2025年市场洞察报告.docx
- 政策引导下的2025年半导体设备国产化产业政策优化研究.docx
- 数字化转型背景下2025年民俗文化博物馆数字藏品平台发展路径探讨.docx
- 数字化转型背景下2025年线上培训平台构建研究.docx
- 数字收藏品市场泡沫破裂对数字娱乐产业的影响分析.docx
- 房地产企业数字化转型:2025年营销效果监控与优化策略分析.docx
- 探索2025年人工智能伦理风险法律规制在智能语音助手中的应用与风险.docx
- 探究2025年元宇宙社交平台用户生成内容创新模式研究报告.docx
文档评论(0)