| < Day Day Up > |
|
saveMessages method (Action class), 387-389
saveToken method (Action class), 381-385
scope (Tiles), 216, 228-231
scripting (JSPs)
declarations, 34-35
expressions, 35
scriptlets, 35-36
scriptlets (JSPs), 35-36
service() method (servlets), 14, 16
ServletContext, 20-21
ContextServlet example
code listing, 21-22
deploying, 23-25
getAttribute() method, 21
getAttributeNames() method, 21
removeAttribute() method, 21
setAttribute() method, 21
Web application relationship, 21
Servlet interface, 14
servlets
defined, 13
deploying, 19-20
executing, 14
GenericServlet class, 15
HttpServlet class, 15
javax.servlet.http package, 13
javax.servlet package, 13
life cycle, 15-16
ParameterServlet example
code listing, 26-27
invoking (HTML form), 27-28
running, 28-30
retrieving data with, 25
getParameter() method, 25
getParameterNames() method, 25
getParameterValues() method, 25
Servlet interface, 14
SimpleServlet example
code listing, 17
doGet() method, 18-19
doPost() method, 18-19
init() method, 18
session object (JSPs), 40-41
setLocale method (Action class), 386-387
<set-property> sub-element, 175-176, 294
short rule (Validator), 190
SimpleServlet example
code listing, 17
deploying, 19-20
doGet() method, 18-19
doPost() method, 18-19
init() method, 18
standard actions (JSPs)
defined, 42
<jsp:forward>, 50-52
<jsp:getProperty>, 44
<jsp:include>, 48-49
<jsp:param>, 47-48
<jsp:plugin>, 52-53
<jsp:setProperty>, 43-44
<jsp:useBean>, 42-43
stock quote application
ActionForm class, 60-61
ActionMapping extension
creating, 145-146
deploying, 148-149
LookupAction modifications, 147-148
Controller component, 62-66
deploying, 66-67
development process, 56-57
error handling
Action.execute() method, 167-170
ActionForm.validate() method, 163-164
ApplicationResources file modifications, 169-170
<html:errors /> tag, 165-167
LookupAction code listing, 167-169
integrating DBCP into, 173-179
<data-source> element, 173-175
LookupAction modifications, 176-178
<set-property> sub-elements, 175-176
testing changes, 179
internationalizing, 154-158
running, 68-70
Tile layout
building, 218-219
creating, 219-221
incorporating into applications, 222-224
Views, 57-59
Quote View, 61-62
struts
Controller components, 5, 62
Action class, 78-83
ActionServlet class, 73-76
Plugins, 83-86
RequestProcessor class, 87-90
deploying, 66-67
design pattern debate, 2
development process, 56-57
downloading, 55
installing, 55-56
project history, 1-2
View components, 57, 105
struts-config.xml file, 291-292, 399
Struts Modules, 77-78
StrutsTestCase, 413
sub-elements. See also elements
<action>, 111-112, 299-301
ActionMapping objects, 144
<controller>, 301-302
<description />, 294
<display-name />, 294
<exception>, 297-298
<form-bean>, 296-297
<global-exceptions>, 297-298
<global-forwards>, 298-299
<icon />, 293
putList, 232-233, 235-236
<set-property />, 294
SwitchAction, 102-103
| < Day Day Up > |
|