T


S

sample application (Mini HR)

adding declarative exception handling to, 166–171

adding Tiles to, 153–160

adding Validator to, 126–129

application files, 11–13

compiling, 33–35

Controller layer, 86–87

converting to use modules, 178–184

Employee.java, 27

EmployeeSearchService.java, 25–27

flow of execution, 38–39

index.jsp, 13–15

integrating AJAX with, 486–493

internationalizing, 194–200

MessageResources.properties, 32

Model layer, 44–46

overview, 11

packaging, 35

recompiling, repackaging, and running with AJAX, 492–493

running, 35–37

SearchAction.java, 23–25

SearchForm.java, 21–23

search.jsp, 15–20, 489–492

struts-config.xml, 29–32, 488–489

using Struts Scripting with, 453–456

using the Struts-Faces Integration Library with, 477–483

View layer, 60–64

web.xml, 28–29

Welcome File list, 29

scope, 251–252, 311–312, 333–334

scripting. See Struts Scripting

SearchAction.java, 23–25

SearchForm.java, 21–23

search.jsp, 15–20

updating to use AJAX, 489–492

security

application-managed, 202–204, 211–223

authentication and authorization, 202

container-managed, 202–204, 204–211

HTTPS, 201–202

overview, 201

role-based access control (RBAC), 202

select tag, 299–301

separations of concerns, 131

servlet filters, using for security, 217–220

servlets, 4

set-property tag, 416, 426

short validation, 113–114

shortLocale validation, 114

size tag, 327–329

SSL, integrating Struts with, 221–223

SSL Extension to Struts. See SSLEXT

SSLEXT, 222–223, 515

Strecks, 515

Struts, 9

base framework, 9

binary distribution, 10

downloading, 10, 33

evolution of, 7–8

JSP tag libraries, 9

as open source software, 8

overview, 7

Sandbox, 9

source distribution, 10

support for, 8

See also Tiles; Validator

Struts Console

acquiring and installing, 500

editing Struts configuration files, 417–418

editing Tiles configuration files, 428

editing Validator configuration files, 443–444

output options, 513–514

overview, 498–498, 516

supported configuration files, 498–499

using as a stand-alone application, 500–501

using inside Borland JBuilder, 501–503

using inside Eclipse, 503–505

using inside IBM Rational Application Developer for WebSphere, 505–507

using inside IntelliJ IDEA, 507–509

using inside NetBeans, 509–510

using inside Oracle JDeveloper, 511–512

Struts EL tag libraries, 392–396

Struts Layout, 516

Struts Menu, 516

Struts Scripting

adding .jar files and properties file to the application, 449

BSFManagerFilter implementation-

based custom variables, 452–453

configuring script-based actions in the application's Struts configuration file, 450–451

creating script-based actions, 450

overview, 447, 448

predefined scripting variables, 451

Struts configuration file-based custom variables, 451–452

using with Mini HR application, 453–456

struts tag, 329–331

struts-config tag, 416–417

struts-config.xml, 29–32, 158–160, 488–489

adding the Validator plugin to, 128

Struts-Faces Integration Library

adding a servlet definition for the JSF controller servlet to the web.xml file, 459–460

adding required .jar files to the application, 459

base tag, 463–464

commandLink tag, 464–467

configuring forward and action definitions in the application's Struts configuration file, 461

configuring Struts to use a custom Struts-Faces request processor, 460

creating JSF-based user interfaces with Struts-Faces and JSF Tag Library tags, 460–461

errors tag, 467–468

form tag, 469–470

html tag, 470–471

javascript tag, 471–473

limitations, 461–462

loadMessage tag, 473

message tag, 474–475

overview, 457–458

stylesheet tag, 476

supported versions of JSF, 458

supported versions of Struts, 458

tags, 462–463

using with the Mini HR application, 477–483

write tag, 476–477

StrutsTestCase, 231–233

using with Cactus, 236–238

stxx, 516

stylesheet tag, 476

submit tag, 301–302

SwitchAction class, 84–85, 176–177

system testing, 226



Struts. The Complete Reference
Struts: The Complete Reference, 2nd Edition
ISBN: 0072263865
EAN: 2147483647
Year: 2004
Pages: 165
Authors: James Holmes

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net