Index_S

 < Day Day Up > 



S

Scope, in JSPs, 195–196, 255–256, 283–284

scope attribute of action tag, 57

Search action, 147–148

Search by Name use case, 453–458

with matches, 453

with no matches, 454

Search for Employees link, 41, 175

Search results, logic and tags for rendering, 23–24

SearchAction class, 24, 28–30, 38, 89–90

Cactus unit test for, 447, 450

throwing an application exception, 157–158

unit tests for, 443, 447, 450

searchAction.java file, 28–30

SearchByName( ) method, 29, 31

SearchBySsNum( ) method, 29, 31–32

SearchForm class, 22, 24, 27, 29, 37

isValidSsNum( ) method, 27

reset( ) method, 67

Results field of, 24

results property, 444

validate( ) method, 67

SearchForm Form Bean, 64–67, 69

searchForm.java file, 24–28, 111

search.jsp (Search page), 18–24, 142, 452

as search criteria page and search results page, 67

containing only body content, 145–146

contents of, 20–23

new modules in, 170

updating for internationalization, 188–190

search.page definition, 122–123, 147

Secure communications, 410

Secure transport, container-managed, 419–420

SecureRequestProcessor, 432

Security

application-managed, 411–412, 420–434

container-managed, 411–420

functional requirements of, 409

levels of, 409–412

SSLEXT, 432–434

of Struts applications, 409–434

system requirements of, 409

using servlet filters for, 427–430

Security checks, page/action-level, 425

Security policy, 409

Security realm, 414–415

Security service, creating, 420–431

security-constraint element, 413, 419

SecurityFilter (open-source filter), 429–430

SecurityService interface API, 421–422

select tag (Struts HTML Tag Library), 243–245

attributes, 243–244

example usage, 244–245

sendError( ) method, 429

Separation of concerns (principle), 117

Serializable classes, Java vs. Struts, 181

Server JVM (in Cactus architecture), 446

service( ) method, servlet, 195, 255, 283–284

Servlet filters, using for security, 427–430

Servlet service( ) method, 195, 255, 283–284

ServletContext, 450

servlet-name tag, 34

Servlets, advent of, 4

ServletTestCase (Cactus), 446

Session object (JSP), 256, 284

Session scope (JSPs), 196

set-property tag, 113, 148

attributes, 374, 385

DTD definition, 374, 385

example usage, 374, 385

in Struts configuration file, 373–374

in Tiles configuration file, 385

setUp( ) method, 438, 443, 446–447

SHA (Secure Hash algorithm), 431

Simulating multiple instances, 163

size tag (Bean Tag Library), 24, 275–277

attributes, 275–276

example usage, 276–277

Social Security Number validation, 103–104, 112

Source code, committers for, 8–9

Source distribution of Struts, downloading, 11

Spanish language Locale object, 178

Spanish version of the application

resource properties file, 186–187

search page, 192

search.page definition, 128–129

testing, 190–192

SQL Tag Library tags (JSTL), 339

SSL, integrating Struts with, 431–434

SSLEXT (SSL Extension to Struts), 432–434

Stored application content, retrieving, 69

Storing application content, 63

Storing validation error messages, 69

String objects (Strings)

indexOf( ) method, 31

using for Form Beans, 56

Struts applications

building, 13–45

overview of, 13–39

securing, 409–434

Struts Configuration DTD, 37, 93, 120

Struts configuration file, 353–376

configuring an action, 76

configuring SwitchAction, 87

creating action mappings in, 79–81, 86

defining global forwards, 88

Dynamic Form Beans in, 61

for each module, 164, 171–173

list of tags in, 356–357

Struts configuration file tags, 356–375

Struts configuration files, 351–406

editing with Struts Console, 375–376

Struts, 353–376

Struts Console-supported, 466–467

Tiles, 377–387

use of multiple, 355

Validator, 389–406

Struts Console, 120

acquiring and installing, 468

as a stand-alone application, 468–470

editing configuration files with, 375–376

editing Tiles configuration files with, 387

editing Validator configuration files with, 405

IDE Options dialog box, 471

IDE Settings dialog box, 479

IDEs that support, 465–466

inside Borland JBuilder, 470–472

inside Eclipse, 472–475

inside IBM WSAD, 475–478

inside IntelliJ IDEA, 478–480

inside NetBeans, 480–481

inside Oracle JDeveloper, 482–484

inside Sun Java Studio, 480–481

Preferences dialog box, 475, 477, 483

quick reference to, 465–485

running as a stand-alone application, 387, 406

in a separate window, 474

supported configuration files, 466–467

Struts Console output options, configuring, 484–485

Struts controller servlet, 126

Struts framework, 7–9

acquiring, 10–11

as open source, 8–9

as a Web application framework, 7

base framework, 9

basic components of, 9–10

Controller layer and, 71

downloading a binary distribution of, 11

downloading and installing, 39

downloading a source distribution of, 11

initialization of, 72

integrating with SSL, 431–434

internationalization support, 181–185

JSP tag libraries, 9–10

and the Model, 48–49

support for modules, 163

support for multiple configuration files, 163–164

three forms of, 9

using JSTL with, 333, 340–350

and the View layer, 53–64

Struts modules, 163–175

Struts 1.0 configuration file, 466

Struts 1.1 configuration file, 466

Struts 1.2 configuration file, 466

Struts request processor, 126

struts tag (Bean Tag Library), 277–280

attributes, 278

example usage, 278–280

Struts tag libraries, 62, 193–350

Bean Tag Library, 255–282

HTML Tag Library, 195–253

Logic Tag Library, 283–323

Nested Tag Library, 325–332

Struts tag libraries and their purpose, 62

Struts tag library support for internationalization, 184–185

Struts tag library tags with JSTL equivalents of, 342–346

struts-config tag (Struts configuration file), 374

DTD definition, 374

example usage, 374–375

struts-config-employee.xml file, 171

struts-config-reports.xml file, 172

struts-config.xml file, 17, 29, 34, 36–38, 92–93, 119–120, 151–152

action mappings in, 416

adding an exception handler, 156

adding Tiles to, 147–149

adding Validator to, 112–113

Dynamic Form Bean in, 97–98

exception handler in, 158–160

roles attribute, 416

Struts-EL, 340–342

Bean Tag Library tags, 347

HTML Tag Library tags, 348

Logic Tag Library tags, 349

tag libraries, 346–347

Tag Library tags, 347–350

Tiles Tag Library tags, 349–350

StrutsTestCase, 442–444, 448–450

struts-tiles.tld file, 141–142

stxx (View technology), 70

submit tag (Struts HTML Tag Library), 245–246

attributes, 245–246

example usage, 246

Sun Java Studio, Struts Console inside, 480–481

super.execute( ) method, 156

Swing API (Java), 8, 70, 459

SwitchAction class, 87, 167

System testing, 436



 < Day Day Up > 



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

Similar book on Amazon

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