- 1、本文档共22页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
EL表达式与JSTL标签的结合用法!(The combination of EL expressions and JSTL tags!)
EL表达式与JSTL标签的结合用法!(The combination of EL expressions and JSTL tags!)
Pass wisdom podcast, --EL expression and JSTL tag combination usage! (2009-03-07 00:34:24) reprint label: it
EL and JSTL JAVA as WEB developers, skilled use of them in View mode more efficient. Because of their presence, basically in the view page is not JAVA code! Their great power will be listed below! As the concept is not to say, for example to introduce!
Target.jsp
%@ page language= Java contentType= text/html; charset=GB2312 import= cn.itcast.el.*,
Java.util.*%
DOCTYPE, HTML, PUBLIC, -//W3C//DTD, HTML, 4.01, Transitional//EN
html
head
titleMy, JSP,target.jsp.jsp, starting, page/title
/head
body
%--
Object obj = session.getAttribute (person);
If (obj = = null) {
Person P = (Person) obj;
%
Name: p.getName (%br)
Email: p.getEmail (%br)
Password: (p.getPassword)%
}
--%
1. br
Name: ${sessionS} -- ${sessionScope[person].name}br
Email: ${sessionScope.person.email}br
Password: ${sessionScope.person.password}brbr
Two
//pageContext.setAttribute (username, Bob);
Application.setAttribute (username, Bob);
%
br in turn looks for the specified property value br from the page request session application
Username: ${username (pageContext.findAttribute: %=} - principle (username)% )
brbr
3.br
String age = request.getParameter (age);
Out.println (age + 12 (error): + (age + 12) + , (right): + (Integer.parseInt (age) +)
12));
%
br
Age + 12:, ${param.age + 12}
brbr
4. br
Person P = new, Person ();
P.setEmail (email123);
P.setName (Tom123);
P.setPassword (123456123);
Request.setAttribute (person123, P);
%
RequestScope.person.email: ((strongly converted to javaBean type), request.getAttribute (person123)).GetEmail
(). br
Email: ${requestScope.person123.email}
brbr
5. br
Int i = 0;
%
%=% I
Name: ${} - %= request.getParameter (name)%br
Age: ${param.age} - %= request.getParameter (age)%br
Interesing:, ${paramVeresing[0],}, ${paramVeresing[1]}
-
%= request.getParameterValues (interesing) [0]%
%= reque
您可能关注的文档
- !支持安装飞Q软件的机型(Support the installation of flying Q software models).doc
- (如何学看盘)((learn how to read the tape)).doc
- 00年一级听力原文(00 years of listening comprehension).doc
- 04.行车闭塞07-04-01(4 block 07-04-01).doc
- 08-11月-TTT企业培训师培训(08-11 months -TTT enterprise trainer training).doc
- 10以内加减法练习题(10 plus or minus exercises).doc
- 100个最常见错别字详解(The 100 most common typos.).doc
- 110kV终端变电所电气部分设计+电气主接线图+短路计算(110kV terminal substation electrical design + electrical main wiring diagram + short-circuit calculation).doc
- 12-爱数备份软件 服务器版3.0(12- love number backup software server version 3).doc
- 129条成功励志名言名句(129 successful inspirational quotes).doc
- 2025年银发经济社区服务体系建设白皮书.docx
- 数字化办公环境下的2025年职场新人需求与智能办公系统升级.docx
- 针对2025年智能制造的智能制造系统集成项目智能化创新报告.docx
- 智能交通车辆检测技术在港口物流中的应用分析报告.docx
- 城市污水主管网治理及污水泵站扩容项目投资估算方案(范文参考).docx
- 2025年旅游景区元宇宙虚拟游览在旅游产业创新中的推动力.docx
- 2025年学前教育普惠化背景下民办园招生宣传效果评价研究报告.docx
- 共享自习室2025年空间管理创新与利用率提升.docx
- 深入解析2025年低空经济下无人机巡检服务商业化模式的发展趋势.docx
- 2025年旧衣物循环经济:社区跨境再生利用产业政策与市场分析报告.docx
最近下载
- 《家庭路由器密码修改.doc VIP
- 光伏施工电站施工质量管理体系及保证措施.docx VIP
- 退换货应急服务措施及保障.docx VIP
- 医疗器械公司组织机构图和部门设置说明【模板范本】.docx
- 2020年最新小学数学教师编制考试新课标测试题及答案(三).docx VIP
- 拼多多法律顾问岗面试题库参考答案和答题要点.docx VIP
- 腾讯法律顾问岗面试题库参考答案和答题要点.docx VIP
- 小米法律顾问岗面试题库参考答案和答题要点.docx VIP
- 网易法律顾问岗面试题库参考答案和答题要点.docx VIP
- 惠普HP DeskJet Ink Advantage Ultra 4800 系列参考指南.pdf
文档评论(0)