String class, 46
StringArrayPropertyEditor propertyeditor,
136
String-encoded representation, 356
Strings, array of, 120
stubs, vs. mocks, 297
stylesheetLocation property, 254
subclasses, 117–118
subflow output attribute, 342
Subflow state, 318, 359
subflows, 318, 337
attribute mappings
AttributeMappers, 342
custom AttributeMappers, 343
example, 342
overview, 341
overview, 337–341
subflow-state definition, 340
<subflow-state> element, 341
submission data, XHTML form, 46
submit event, 318, 322, 365
success view, 73–74
successView property, SimpleFormController
class, 150
superclasses, of exception mappings, 98
super.doMethod( ) method, 117
supports( ) method, Validator interface, 265
suppressValidation( ) method, 154
Suspended status, FlowSession, 350
switch statement, 289
synchronizeOnSession property, 122
■T
T construct, 271
tag library, 241
Tag Library Descriptor (TLD), 186
tagdir attribute, 188
tagfiles, 232
taglib attribute, 188
tags, 72
TDD (test-driven development), 290, 313
template languages, 52
template pattern, 37, 118
templates, Velocity and FreeMarker, 235–239
basic configuring for template engines,
236–237
template language, 238–239
templating engine, 239
test-driven development (TDD), 290, 313
testEmptyPersonValidation( ) method, 281
testing applications
integration tests
basic guidelines for, 303–304
example, 305–307
overview, 302–304
overview, 283
unit tests
code with dependencies, 291–292
example, 285–288
how to know when test is finished,
288–290
mock objects, 292–296
overview, 283–284
testing controllers, 296–301
tools, 285
when to write tests, 290
testRequest( ) method, 306
testWrongEndTime( ) method, 289
ThemeChangeInterceptor, 218
ThemeResolver class, 82
ThemeResolver interface, 112–113, 216
ThemeResolvers, 218
themes, 112
ThemeSources, 217
third-party JAR dependencies, 51
ThrowawayController, 193–196, 199
ThrowawayControllerHandlerAdapter, 195
ThrowawayControllers controller type, 115
tiers, vs. layers, 21
tiles, 233–235
TilesConfigurer bean, 233
TilesView resolution, 234
timestamp property value, 272
TLD (Tag Library Descriptor), 186
Top-level flow, 345
toString( ) method, 158
transitions, Purchase Product use case,
320–321
■U
underscore (_), 231
unit tests, 36
code with dependencies, 291–292
example, 285–288
how to know when test is finished,
288–290
mock objects
overview, 292–293
techniques, 293
unit tests with jMock, 293–296
overview, 283–284
testing controllers
example, 297–301
overview, 296–297
Servlet API stubs, 297
stubs vs. mocks, 297
tools, 285
when to write tests, 290
updateOwner function, 386
upper function, Valang, 275
URI mappings, 55
URL class, java.net package, 135
url macro, 243
UrlBasedViewResolver resolver, 167, 211, 215
402 ■INDEX
584X_Ch15_Index_FINAL 1/30/06 12:53 PM Page 402