Uploader: Elliot
Country: United States
Uploaded: Sep 26, 2018
Price: Free
Rating: Based on 1 user ratings

Please, verify you are not robot to load rest of pages

download scwcd exam study kit pdf

SCE 310-081
SCWCD
EXAM STUDY KIT
SECOND EDITION
JAVA WEB
COMPONENT
DEVELOPER
CERTIFICATION
Hanumant Deshmukh
Jignesh Malavia
Matthew Scarpino
MANNING
SCWCD Study Kit Second Edition
by Matthew Scarpino (Second Edition author)
Hanumant Deshmukh
Jignesh Malavia
with Jacquelyn Carter
Sample Chapter 17
Copyright 2005 Manning Publications
brief contents
Part 1
Getting started
1
1 Understanding Java servlets 3
2 Understanding JavaServer Pages 14
3 Web application and HTTP basics 21
Part 2
Servlets
29
4 The servlet model 31
5 Structure and deployment 67
6 The servlet container model 83
7 Using filters 97
8 Session management 119
9 Developing secure web applications 139
Part 3
JavaServer Pages and design patterns 163
10 The JSP technology model—the basics 165
11 The JSP technology model—advanced topics 188
12 Reusable web components
219
v
13 Creating JSPs with the Expression Language (EL)
236
14 Using JavaBeans 251
15 Using custom tags 285
16 Developing “Classic” custom tag libraries 309
17 Developing “Simple” custom tag libraries
352
18 Design patterns 376
Appendices
A Installing Tomcat 5.0.25 403
B A sample web.xml file 408
C Review Q & A 412
D Exam Quick Prep
vi
475
BRIEF CONTENTS
C
H
A
P
T
E
R
1
7
Developing “Simple”
custom tag libraries
17.1
17.2
17.3
17.4
17.5
Understanding SimpleTags 353
Incorporating SimpleTags in JSPs 357
Creating Java-free libraries with tag files 364
Summary 371
Review questions 372
EXAM OBJECTIVES
10.4 Describe the semantics of the “Simple” custom tag event model when the event
method (doTag) is executed; write a tag handler class; and explain the constraints
on the JSP content within the tag.
(Sections 17.1 and 17.2)
10.5 Describe the semantics of the Tag File model; describe the web application structure
for tag files; write a tag file; and explain the constraints on the JSP content in the
body of the tag.
(Section 17.3)
352
So far, you’ve seen the interfaces for classic tag development (Tag, IterationTag,
and BodyTag) and their associated event methods (doStartTag(), doAfterBody(), and doEndTag()). These constructs give you a great deal of flexibility in
building custom tag libraries, but coding can be time-consuming and complex. The
JSP 2.0 standard reduces the burden by providing an alternate means of creating your
tag libraries: the simple tag model.
With this new methodology, you only need to keep track of one interface, SimpleTag, and a single event method, doTag(). This way, you can concentrate on Java
code instead of directing the web container’s operation. JSP 2.0 also gives you different
options for processing body content and tag attributes.
In addition, the new specification provides a new means of library development
with tag files. Tag file processing is similar to regular JSP tag processing, but doesn’t
use tag library descriptors or tag handlers. Instead, tag files are coded with regular JSP