- 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
- 高中生物实验:城市热岛效应对城市生态系统服务功能的影响机制教学研究课题报告.docx
- 信息技术行业信息安全法律法规研究及政策建议教学研究课题报告.docx
- 人工智能视角下区域教育评价改革:利益相关者互动与政策支持研究教学研究课题报告.docx
- 6 《垃圾填埋场渗滤液处理与土地资源化利用研究》教学研究课题报告.docx
- 小学音乐与美术教师跨学科协作模式构建:人工智能技术助力教学创新教学研究课题报告.docx
- 《航空航天3D打印技术对航空器装配工艺的创新与效率提升》教学研究课题报告.docx
- 教育扶贫精准化策略研究:人工智能技术在区域教育中的应用与创新教学研究课题报告.docx
- 《区块链技术在电子政务电子档案管理中的数据完整性保障与优化》教学研究课题报告.docx
- 《中医护理情志疗法对癌症患者心理状态和生活质量提升的长期追踪研究》教学研究课题报告.docx
文档评论(0)