SCWCD1.4的资料

开始复习的是080。

看了几位前辈的帖子,才知道081和080有很大的不同。

以下为增加的两部分,为EL和JSTL。

Chapter 7. Building JSP Pages Using the Expression Language (EL)
Given a scenario(方案;情况;概要), write EL code that accesses the following implicit variables including: pageScope, requestScope, sessionScope, and applicationScope, param and paramValues, header and headerValues, cookie, initParam and pageContext.
There are several implicit objects that are available to EL expressions used in JSP pages. These objects are always available under these names(讲的是EL的隐含对象和简单的说明)

然后举了几个例子,有EL的.运算和[]运算。
Chapter 9. Building JSP Pages Using Tag LibrariesFor a custom tag library or a library of Tag Files, create the 'taglib' directive for a JSP page.
The set of significant(有意义的, 重大的, 重要的) tags a JSP container interprets (解释, 说明)can be extended through a tag library.

The taglib directive in a JSP page declares that the page uses a tag library, uniquely(独特地,唯一地,珍奇地) identifies the tag library using a URI and associates(使发生联系, 使联合) a tag prefix that will distinguish usage of the actions in the library.

If a JSP container implementation cannot locate a tag library description, a fatal translation error shall result.

It is a fatal translation error for the taglib directive to appear after actions or functions using the prefix.

In the following example, a tag library is introduced and made available to this page using the super prefix; no other tag libraries should be introduced in this page using this prefix. In this particular case, we assume the tag library includes a doMagic element type, which is used within the page.

JSTL增加的部分:
Given a design goal, use an appropriate(适当的) JSP Standard Tag Library (JSTL v1.1) tag from the "core" tag library.
The center of JSTL is the core taglib. This can be split into five areas:

General purpose

Variables support

Conditional

Iterator

URL Related

To use the core library, use the following directive:

<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>The prefix attribute specifies(指定,规定,确定) the prefix used in the tag name for a particular library. For example, the core library includes a tag named out. When combined with a prefix of c, the full tag would be <c:out>. You are free to use any prefix you like, but you must use different prefixes for each of the four standard tag libraries.

You must also put the corresponding(相应的) .tld file for each tag library in your /WEB-INF directory and use the taglib element in your web.xml file to include the tag library:

<taglib>    <taglib-uri>http://java.sun.com/jstl/core</taglib-uri>    <taglib-location>/WEB-INF/tld/core.tld</taglib-location></taglib>

General purpose tags.

The general-purpose tags let you display variable values, and enclose(封闭,密封;包装,包围) a group of tags within a try-catch block.

The <c:out> action provides a capability(能力, 性能, 容量)similar to JSP expressions such as <%= scripting-language-expression %> or ${el-expression}. For example:

You have <c:out value="${sessionScope.user.itemCount}"/> items.

The <c:catch> action allows page authors to handle errors from any action in a uniform(统一的, 相同的) fashion, and allows for error handling for multiple actions at once. <c:catch> provides page authors with granular(粒度[状) error handling: Actions that are of central importance to a page should not be encapsulated(密封) in a <c:catch>, so their exceptions will propagate to an error page, whereas actions with secondary importance to the page should be wrapped in a <c:catch>, so they never cause the error page mechanism to be invoked(调用). The exception thrown is stored in the scoped variable identified by var, which always has page scope. If no exception occurred, the scoped variable identified by var is removed if it existed. If var is missing, the exception is simply caught and not saved.

<c:catch [var="varName"]>nested(嵌套的) actions</c:catch>这部分基本上涉及了JSTL的所有内容。

包括<c:out><c:set><c:catch><c:when><c:choose><c:remove><c:forTokens><c:forEach><c:if>

还有<c:url><c:import><c:redirect>

详细内容见http://java.boot.by/wcd-guide/ch09s03.html

时间: 2024-10-06 03:19:52

SCWCD1.4的资料的相关文章

【资料合集】阿里巴巴开源技术汇总——内含115个软件与100+技术文档、PDF下载

开源是孵化新技术领域的容器,开源是技术演进的强大推动力.多年来,阿里巴巴集团一直积极拥抱开源事业,无论是开源软件的应用.回馈以至自研技术的开源都非常活跃. 为了更好地让开发者们深入了解阿里开源,本文对社区内发布过的开源技术精品内容做了一次大汇总,包括115个阿里巴巴开源技术.阿里巴巴73款开源产品全向图.首届阿里开源峰会PDF+活动视频回顾等等. 阿里巴巴73款开源产品全向图 2016阿里巴巴73款开源产品全向图(9月制)点击图片可下载大图. 2016阿里巴巴73款开源产品全向图详细介绍 "阿里

300+篇运维、数据库等实战资料免费下载(文章+PDF+视频,持续更新)

2017年已过去一半,在此小编为大家精心整理了2017上半年热点事件解析.实战技术资料以及特别策划短视频系列,希望可以帮助大家更深入地回顾上半年的技术热点,并储备更充足的技术干粮继续2017的下一半. PART 1 峰会回顾资料 云栖大会 [上海云栖大会]2017云栖大会上海峰会资料合计(现场视频+PDF下载) [成都云栖大会]2017云栖大会成都峰会资料合计(现场视频+PDF下载) [南京云栖大会]2017云栖大会南京峰会资料合计(现场视频+PDF下载) 技术峰会 [运维/DevOps峰会]

【演讲实录+视频】走近40+世界级AI专家!第三届中国人工智能大会资料分享

中国人工智能大会(CCAI),由中国人工智能学会发起,目前已成功举办两届,是中国国内级别最高.规模最大的人工智能大会.秉承前两届大会宗旨,由中国人工智能学会.阿里巴巴集团 & 蚂蚁金服主办,CSDN.中国科学院自动化研究所承办,作为独家直播合作伙伴的第三届中国人工智能大会(CCAI 2017)于7月22-23日在杭州召开. 大会官网及图文直播:  http://ccai.caai.cn/m/zone/ccai2017/live 大会现场视频直播盛况:  https://yq.aliyun.com

你不能错过的“推荐系统”资料合集

杂志: 架构师特刊 ① <架构师特刊:推荐系统(理论篇)> 内容目录: 第1章 推荐算法简介 第2章 协同过滤推荐算法 第3章 基于内容的过滤算法 第4章 混合推荐算法 第5章 如何选择推荐算法 第6章 推荐系统和搜索引擎的关系 ② <架构师特刊:推荐系统(实践篇)> 内容目录: 第1章 微博推荐架构的演进 第2章 Netflix的推荐系统和架构 第3章 博客推荐系统 第4章 Spotify每周歌曲推荐算法解析 第5章 达观个性化推荐系统实践 书籍 ① <推荐系统实践>

重要资料、软件、平台等网址大全

重要资料.软件.平台等网址大全 HHI之HEVC:http://www.hevc.info/ JTC-VC:http://phenix.int-evry.fr/jct/ JTC-VC会议:http://phenix.int-evry.fr/jct/    http://wftp3.itu.int/av-arch/jctvc-site/ FFmpeg官网:http://ffmpeg.org/ HEVC官方测试模型HM平台下载地址:https://hevc.hhi.fraunhofer.de/svn

【资料合集】Weex Conf回顾集锦:讲义PDF+活动视频!

Weex Conf在2017年1月12日顺利召开! 为了让大家更好的理解和学习Weex,我们将本次大会资料整理出来,供大家参考. 上午Keynote 环节简介:在Weex Conf上午Keynote环节,阿里资深总监庄卓然(南天).天施.鬼道.勾股以及圆心几位嘉宾,回顾了Weex的发展历史,展望了未来Weex的发展路线图. 直播视频:https://yq.aliyun.com/edu/lesson/play/546 下午:技术实战分论坛 环节简介:技术实战分论坛是下午最受欢迎的一个论坛,勾股.寒

蚂蚁金服&amp;阿里云在线金融技术峰会全套资料(视频+PDF)公开!

8月30-31日我们成功举办了"蚂蚁金服&阿里云在线金融技术峰会".本次峰会聚焦数据库.应用架构.移动开发.机器学习等热门领域,帮助金融业技术开发者深入解析互联网应用的前沿应用与技术实践.目前相关活动视频.整理文章已经出炉,整理如下,供大家参考. 蚂蚁金服&阿里云在线金融技术峰会精彩回顾:https://yq.aliyun.com/activity/109 为了让大家更好的了解本次峰会议题和分享讲师,我们汇总了本次议题介绍如下,供大家参考.在峰会开始前,邀请大家仔细看下

(更新完结)阿里珍贵技术资料免费下载

小编精心挑选2016云栖大会.历届在线技术峰会.云栖技术直播核心资料,只把最好的呈现给你!因为资料集合过于庞大,所以分批放出,随时关注社区,可以看到全套460份资料合集哦! 3月16日更新:[PDF]企业互联网转型中大数据建构[PDF]中石化互联网转型思考与实践[PDF]阿里开源发展与生态[PDF]Open Source Docker[PDF]Weex项目&阿里移动技术开源方向[PDF]How to create a successful open source project[PDF]中国人的

【资料合集】运维/DevOps在线技术峰会:文章、PDF+回顾视频!

从传统IT部署到云,人肉运维已经是过去式,云上运维该怎么开展?尤其是云2.0时代,运维已经向全局化.流程化和精细化模式转变.与此同时,人工智能的发展,"威胁论"也随之袭来--运维是不是快要无用武之地了?如何去做更智能的活,当下很多运维人在不断思考和探寻答案. 1.同城容灾架构剖析--夸父 演讲视频:http://yq.aliyun.com/webinar/play/202 PDF下载:https://yq.aliyun.com/attachment/download/?id=1523