- Page 1: IBM WebSphere Application Server -
- Page 5 and 6: Contents Notices . . . . . . . . .
- Page 7 and 8: 5.1.10 Working with WebArt Designer
- Page 9 and 10: 11.1.2 Web services approach for an
- Page 11 and 12: Chapter 15. Development in a team e
- Page 13 and 14: Index . . . . . . . . . . . . . . .
- Page 15 and 16: Notices This information was develo
- Page 17 and 18: Preface This IBM Redbook introduces
- Page 19 and 20: Notice This publication is intended
- Page 21 and 22: Chapter 1. Getting started 1 IBM We
- Page 23 and 24: 1.1.1 WebSphere Studio Site Develop
- Page 25 and 26: 1.1.5 Web server A Web server to ac
- Page 27 and 28: ► The product home page for WebSp
- Page 29 and 30: ► Online help and infopops The St
- Page 31 and 32: Figure 1-2 Selecting a workspace 3.
- Page 33 and 34: Figure 1-3 Adding an example applic
- Page 35 and 36: ► Resource reservation ► Addres
- Page 37 and 38: Chapter 2. Application design This
- Page 39 and 40: First Tier Middle Tier Third Tier T
- Page 41 and 42: A significant amount of data reside
- Page 43 and 44: 2.2.1 Use-case analysis The use-cas
- Page 45 and 46: Business O wner Buyer Figure 2-4 Ma
- Page 47 and 48: Figure 2-6 shows the typical flow o
- Page 49 and 50: ► You may have more than one view
- Page 51 and 52: Façade Figure 2-8 Model layer Mode
- Page 53 and 54:
2.4.2 Servlets ► request ► resp
- Page 55 and 56:
2.4.5 XML 2.4.6 Web services Tag li
- Page 57 and 58:
► The introduction guide at: http
- Page 59 and 60:
2.5.3 Datatypes Datatypes is a colu
- Page 61 and 62:
► IBM Patterns for e-business htt
- Page 63 and 64:
3 Chapter 3. Using Studio Site Deve
- Page 65 and 66:
Tip: If you want to skip the option
- Page 67 and 68:
3.2 Perspectives Figure 3-3 Local h
- Page 69 and 70:
3.2.1 Editors You can open a new pe
- Page 71 and 72:
New icon Figure 3-5 Using fast view
- Page 73 and 74:
a. Select the view's title bar and
- Page 75 and 76:
You can find help information in on
- Page 77 and 78:
Chapter 4. Working with Web applica
- Page 79 and 80:
Figure 4-1 Enterprise Deployment De
- Page 81 and 82:
web.xml WEB-INF Figure 4-2 The WEB-
- Page 83 and 84:
Wishlist/SearchItemMasterView.jsp
- Page 85 and 86:
associating a servlet or a resource
- Page 87 and 88:
Figure 4-3 Creating a Web Project 3
- Page 89 and 90:
Figure 4-5 Creating a Web Project 6
- Page 91 and 92:
Figure 4-7 Creating a Web Project 1
- Page 93 and 94:
Figure 4-9 Directory structure Next
- Page 95 and 96:
4.3.4 Application templates Instead
- Page 97 and 98:
Chapter 5. Working with HTML 5 The
- Page 99 and 100:
You can see the default layout of t
- Page 101 and 102:
Tip: To set the attributes of an el
- Page 103 and 104:
Table 5-1 Links view symbols Symbol
- Page 105 and 106:
You can set up filters to show only
- Page 107 and 108:
You can customize the Palette view.
- Page 109 and 110:
Figure 5-8 Outline view Outline vie
- Page 111 and 112:
Design view The Design view is the
- Page 113 and 114:
Figure 5-11 Validators Validation e
- Page 115 and 116:
This dynamic navigation is accompli
- Page 117 and 118:
Figure 5-13 Site Parts drawer Using
- Page 119 and 120:
Item Sub Item Category Description
- Page 121 and 122:
Item Sub Item Category Description
- Page 123 and 124:
Navigation candidate If the Navigat
- Page 125 and 126:
Note: If you use a page template to
- Page 127 and 128:
Browse to locate the file in the in
- Page 129 and 130:
ii. If you want to use a template o
- Page 131 and 132:
Page templates versus style sheets
- Page 133 and 134:
3. The frameset parent file is the
- Page 135 and 136:
Tip: To see the source for index.ht
- Page 137 and 138:
Adding a table Position the cursor
- Page 139 and 140:
To add an image to the body of a pa
- Page 141 and 142:
Two panes will appear in the editor
- Page 143 and 144:
The WebArt Designer supports the fo
- Page 145 and 146:
Figure 5-26 Using the WebArt Design
- Page 147 and 148:
Figure 5-28 Using WebArt Designer -
- Page 149 and 150:
The AnimatedGif Designer is a progr
- Page 151 and 152:
Figure 5-31 Animation Wizard dialog
- Page 153 and 154:
Click Next. 6. The next screen allo
- Page 155 and 156:
5.2 Adding HTML pages to the Online
- Page 157 and 158:
Figure 5-38 Page Designer for Templ
- Page 159 and 160:
Figure 5-40 Add Style dialog 15.Sel
- Page 161 and 162:
Figure 5-42 Formatted page header t
- Page 163 and 164:
Figure 5-45 Edited company logo 25.
- Page 165 and 166:
3. Replace the Navigation Label tex
- Page 167 and 168:
Figure 5-50 Creating an HTML page 9
- Page 169 and 170:
18.Click Finish. The new page is op
- Page 171 and 172:
Note: By default, every page that i
- Page 173 and 174:
Chapter 6. Accessing databases This
- Page 175 and 176:
► It improves performance. Creati
- Page 177 and 178:
Figure 6-2 Data perspective Here we
- Page 179 and 180:
differently than DB2 and Oracle, th
- Page 181 and 182:
The Database vendor type drop-down
- Page 183 and 184:
2. A window will open to allow you
- Page 185 and 186:
ITEM table The ITEM table contains
- Page 187 and 188:
Figure 6-8 Create a new table defin
- Page 189 and 190:
Figure 6-10 Specify the primary key
- Page 191 and 192:
Figure 6-12 Generate DDL for a data
- Page 193 and 194:
6.2.5 DB output view Figure 6-15 Ex
- Page 195 and 196:
server. One consideration to this i
- Page 197 and 198:
Files: The files box shows the page
- Page 199 and 200:
Figure 6-19 Find the imported datab
- Page 201 and 202:
Figure 6-21 Select the columns 10.W
- Page 203 and 204:
The values we enter during the wiza
- Page 205 and 206:
source connection has the advantage
- Page 207 and 208:
The controller is responsible for d
- Page 209 and 210:
The key value is the link between m
- Page 211 and 212:
Figure 6-29 Final details page b. C
- Page 213 and 214:
The form and the JSPs are now ready
- Page 215 and 216:
SELECT DB2ADMIN.ITEM.ITEM_NUMBER, D
- Page 217 and 218:
This connection also uses servlet i
- Page 219 and 220:
7. Enter the JNDI name in the WebSp
- Page 221 and 222:
Note: Since this is a single-server
- Page 223 and 224:
Figure 6-37 JDBC Driver information
- Page 225 and 226:
Figure 6-39 Creating a data source
- Page 227 and 228:
Note: The JNDI name is case sensiti
- Page 229 and 230:
Figure 6-42 Data sources page after
- Page 231 and 232:
18.Start (or restart) the server. N
- Page 233 and 234:
6. To add particular columns to the
- Page 235 and 236:
Chapter 7. Working with servlets Se
- Page 237 and 238:
Initial state Figure 7-2 A servlet
- Page 239 and 240:
The servlet configuration This obje
- Page 241 and 242:
The first role of a servlet is to a
- Page 243 and 244:
Note: Specifying a value in the Jav
- Page 245 and 246:
Syntax highlighting Within the Java
- Page 247 and 248:
Figure 7-7 Code formatter 3. In the
- Page 249 and 250:
7.2.3 Deployment descriptor editor
- Page 251 and 252:
- Security role references - list t
- Page 253 and 254:
Figure 7-18 Servlet login process 7
- Page 255 and 256:
Figure 7-20 Servlet wizard - screen
- Page 257 and 258:
LoginServlet servlet Figure 7-22 Wo
- Page 259 and 260:
If password matches one in database
- Page 261 and 262:
Chapter 8. Working with JSPs 8 This
- Page 263 and 264:
However, more interesting to the re
- Page 265 and 266:
Example 8-2 JSP document session="t
- Page 267 and 268:
Note: These objects are also availa
- Page 269 and 270:
Attribute Description import Allows
- Page 271 and 272:
One consequence of the fact that th
- Page 273 and 274:
Note that all variables declared wi
- Page 275 and 276:
Action tag Description Used to enc
- Page 277 and 278:
8.2.1 Preferences and properties Wi
- Page 279 and 280:
JSP toolbar menu The JSP option on
- Page 281 and 282:
Snippets view The Snippets view con
- Page 283 and 284:
8.2.3 JSP wizard Figure 8-8 Palette
- Page 285 and 286:
Preferences, and then expanding the
- Page 287 and 288:
Figure 8-10 Location of JSP file 4.
- Page 289 and 290:
Note: The only tag library in Table
- Page 291 and 292:
SELECT DB2AD
- Page 293 and 294:
Item number has been added! Do you
- Page 295 and 296:
Chapter 9. Using tag libraries 9 Cu
- Page 297 and 298:
Advantages Beginning with JSP 1.1 w
- Page 299 and 300:
In practice, it is often best to pr
- Page 301 and 302:
} */ public HelloBean() { super();
- Page 303 and 304:
Tag library descriptor (TLD) The he
- Page 305 and 306:
There is one tag element for each c
- Page 307 and 308:
Invoking the taglib within the appl
- Page 309 and 310:
4. On the Tag Libraries page, you w
- Page 311 and 312:
Figure 9-4 Included tag libraries 6
- Page 313 and 314:
2. Select the References tab and th
- Page 315 and 316:
9.2.2 Using the Insert custom tag d
- Page 317 and 318:
Table 9-3 Tag library options for W
- Page 319 and 320:
The tag library provides functions
- Page 321 and 322:
Example Tag library Your company ex
- Page 323 and 324:
inforequest.html mailer.jsp . . . F
- Page 325 and 326:
Important: By default, the taglibs-
- Page 327 and 328:
8. Your code should look something
- Page 329 and 330:
Chapter 10. Working with XML 10 eXt
- Page 331 and 332:
The XML specification predefines fi
- Page 333 and 334:
10.1.2 Well-formed XML documents Al
- Page 335 and 336:
10.1.6 XML schema invoice The name
- Page 337 and 338:
The second part of our example show
- Page 339 and 340:
10.1.8 XPath defined by XSLT. XSLT-
- Page 341 and 342:
► Creating an XML schema ► Crea
- Page 343 and 344:
When you create an XML file from a
- Page 345 and 346:
10.2.3 Editors ► Select Foreign k
- Page 347 and 348:
► Design view: Represents the XML
- Page 349 and 350:
Note: For information on how to use
- Page 351 and 352:
Validating the XSL file Another use
- Page 353 and 354:
1. To begin, the user will click a
- Page 355 and 356:
Figure 10-10 SQL statement editor w
- Page 357 and 358:
Figure 10-12 XML From an SQL Query
- Page 359 and 360:
db2admin COM.ibm.db2.jdbc.app.DB2
- Page 361 and 362:
7. Click OK. Repeat this process fo
- Page 363 and 364:
Figure 10-17 FeaturedItemXMLServlet
- Page 365 and 366:
* params (optional) : Values to be
- Page 367 and 368:
} } // Substitute relevant href sym
- Page 369 and 370:
equired to create the XSL string fo
- Page 371 and 372:
Important: If you are using the Onl
- Page 373 and 374:
Figure 10-19 Featured item output 1
- Page 375 and 376:
11 Chapter 11. Working with Web ser
- Page 377 and 378:
Web services are inherently open an
- Page 379 and 380:
will also arise that simply catalog
- Page 381 and 382:
SOAP has the following characterist
- Page 383 and 384:
11.1.5 Web Services Invocation Fram
- Page 385 and 386:
A binding template points to an acc
- Page 387 and 388:
► Build — Wrap existing artifac
- Page 389 and 390:
11.2.2 Wizards 11.2.3 WSDL editor S
- Page 391 and 392:
► Publish a business entity to a
- Page 393 and 394:
3. From the Navigator window click
- Page 395 and 396:
Figure 11-9 Client environment conf
- Page 397 and 398:
Figure 11-11 Web service binding pr
- Page 399 and 400:
Figure 11-13 TestClient.jsp 19. The
- Page 401 and 402:
Figure 11-14 Reworked sample 11.3.3
- Page 403 and 404:
Chapter 12. Using Struts In this ch
- Page 405 and 406:
12.1.2 Struts framework True to the
- Page 407 and 408:
Therefore, an input field declared
- Page 409 and 410:
► A design tool to edit a graphic
- Page 411 and 412:
Figure 12-2 Struts settings page Cl
- Page 413 and 414:
Figure 12-4 Struts settings page 6.
- Page 415 and 416:
Page designer Struts support You ca
- Page 417 and 418:
Figure 12-7 Struts preferences - We
- Page 419 and 420:
Within the Web diagram editor , you
- Page 421 and 422:
Procedural data reference: This con
- Page 423 and 424:
Item Parent Function Icon Change Pa
- Page 425 and 426:
Figure 12-10 Struts wizards In addi
- Page 427 and 428:
5. If you want to create an action
- Page 429 and 430:
3. On the New Action Mapping page,
- Page 431 and 432:
Figure 12-14 Action mapping wizard
- Page 433 and 434:
Form bean mapping wizard To create
- Page 435 and 436:
4. If you want to create the new JS
- Page 437 and 438:
Figure 12-15 Configuration file wiz
- Page 439 and 440:
3. Click Finish. Module wizard A St
- Page 441 and 442:
Note: The Web diagram wizard can al
- Page 443 and 444:
The Struts configuration file edito
- Page 445 and 446:
These validators can be turned on a
- Page 447 and 448:
Important: If you are downloading t
- Page 449 and 450:
12.3.3 Creating the Web page nodes
- Page 451 and 452:
12.3.5 Creating connections The app
- Page 453 and 454:
12.3.7 Realizing and editing the We
- Page 455 and 456:
Example 12-3 Adding a bean message
- Page 457 and 458:
20.Right above the tag, insert an
- Page 459 and 460:
Example 12-10 admin1.jsp View C
- Page 461 and 462:
Figure 12-30 Creating an ActionForm
- Page 463 and 464:
Figure 12-33 Creating an ActionForm
- Page 465 and 466:
Figure 12-34 Creating /login action
- Page 467 and 468:
{ } saveErrors(request, errors); //
- Page 469 and 470:
Figure 12-36 Action mapping attribu
- Page 471 and 472:
Figure 12-37 LoginProcess Web diagr
- Page 473 and 474:
have a one-one relationship. The na
- Page 475 and 476:
Chapter 13. Deploying applications
- Page 477 and 478:
► Studio Site Developer Server to
- Page 479 and 480:
13.2 Using the Server tools Studio
- Page 481 and 482:
- Keep publishing dialog open after
- Page 483 and 484:
Figure 13-5 Advanced Server Configu
- Page 485 and 486:
13.3.1 Server types Table 13-1 list
- Page 487 and 488:
Figure 13-8 Select the server type
- Page 489 and 490:
Figure 13-10 Select the enterprise
- Page 491 and 492:
13.4.4 Starting the test environmen
- Page 493 and 494:
Figure 13-14 Run the application No
- Page 495 and 496:
Figure 13-16 Test the application B
- Page 497 and 498:
Figure 13-17 Select the server type
- Page 499 and 500:
Figure 13-19 Select a file transfer
- Page 501 and 502:
Tips: To predefine file transfer me
- Page 503 and 504:
2. The Console view will open autom
- Page 505 and 506:
Note: Server configuration settings
- Page 507 and 508:
properties also means that you will
- Page 509 and 510:
You may either restart the server a
- Page 511 and 512:
3. In the Export resources to an FT
- Page 513 and 514:
Chapter 14. Testing and debugging T
- Page 515 and 516:
Figure 14-1 404 error page Error me
- Page 517 and 518:
14.1.3 Tasks view Figure 14-3 Proje
- Page 519 and 520:
14.1.5 Console view containing the
- Page 521 and 522:
The debugger allows you to control
- Page 523 and 524:
Figure 14-8 Breakpoint view Debug v
- Page 525 and 526:
Tip: Breakpoints can be set in Java
- Page 527 and 528:
14.3 Stepping through code using th
- Page 529 and 530:
Figure 14-14 OnlineCatalog running
- Page 531 and 532:
Breakpoint Figure 14-16 Debug persp
- Page 533 and 534:
Figure 14-19 Set variable value dia
- Page 535 and 536:
Chapter 15. Development in a team e
- Page 537 and 538:
15.1.4 Change history CVS maintains
- Page 539 and 540:
d. Create a version of the applicat
- Page 541 and 542:
Figure 15-2 CVS Repository perspect
- Page 543 and 544:
information. As you continue workin
- Page 545 and 546:
2. Enter a comment and click OK. If
- Page 547 and 548:
This operation is allowed if you ha
- Page 549 and 550:
Figure 15-6 Web project CVS propert
- Page 551 and 552:
Figure 15-7 Synchronizing with the
- Page 553 and 554:
Merging changes The Synchronize vie
- Page 555 and 556:
Figure 15-11 Marking the new local
- Page 557 and 558:
15.7 Using multiple branches The cu
- Page 559 and 560:
Note: When you create a new branch,
- Page 561 and 562:
9. Click OK to add the remembered t
- Page 563 and 564:
Figure 15-13 shows an example of th
- Page 565 and 566:
15.9.1 Comparing a resource The fir
- Page 567 and 568:
Figure 15-15 Three-way compare 15.9
- Page 569 and 570:
15.10 Determining which files are m
- Page 571 and 572:
Chapter 16. Security As new busines
- Page 573 and 574:
Note: WebSphere Application Server
- Page 575 and 576:
The following steps illustrate how
- Page 577 and 578:
At deployment time, security roles
- Page 579 and 580:
application.xml (security tab) user
- Page 581 and 582:
Figure 16-5 Noting the servlet URLs
- Page 583 and 584:
Tip: If a servlet is called using s
- Page 585 and 586:
1. Select the Pages tab in the Web
- Page 587 and 588:
In order to use the J2EE role-based
- Page 589 and 590:
► java.security.Principal getUser
- Page 591 and 592:
LoginJSP.jsp ..... Server confi
- Page 593 and 594:
Figure 16-14 Enabling JAAS within a
- Page 595 and 596:
C:\WebSphere\Express\RAC\bin>racsec
- Page 597 and 598:
Figure 16-16 Agent contoller prefer
- Page 599 and 600:
In order to use this certificate yo
- Page 601 and 602:
Appendix A. Application templates T
- Page 603 and 604:
clicking the relevant icon. If you
- Page 605 and 606:
Preview button Template folders Fig
- Page 607 and 608:
Note: Some templates have an associ
- Page 609 and 610:
Note: If you make changes that conf
- Page 611 and 612:
Figure A-8 Application features 10.
- Page 613 and 614:
Figure A-10 Menu configuration page
- Page 615 and 616:
Figure A-12 Additional data page 18
- Page 617 and 618:
Appendix B. Updating Studio Site De
- Page 619 and 620:
Install/update perspective The Inst
- Page 621 and 622:
Updating features Feature Search Re
- Page 623 and 624:
. Figure B-6 Site to visit folder 3
- Page 625 and 626:
Figure B-8 Feature install wizard -
- Page 627 and 628:
Figure B-10 Adding a site bookmark
- Page 629 and 630:
3. Once you have set your query and
- Page 631 and 632:
C Appendix C. Online Catalog applic
- Page 633 and 634:
ITEM table The ITEM table contains
- Page 635 and 636:
Featured item Figure C-1 Web site d
- Page 637 and 638:
Site administration Note: For addit
- Page 639 and 640:
Item Folder/Package Description Mod
- Page 641 and 642:
Wishlist Table C-7 Catalog items It
- Page 643 and 644:
Item Folder/Package Description Cur
- Page 645 and 646:
Information request Currency conver
- Page 647 and 648:
Template and images Item Folder/Pac
- Page 649 and 650:
Miscellaneous Servlet login There a
- Page 651 and 652:
Struts login Depending on the user
- Page 653 and 654:
Appendix D. Additional material Thi
- Page 655 and 656:
Import the sample The OnlineCatalog
- Page 657 and 658:
9. Execute Step 2 -RunSalesapp.cmd.
- Page 659 and 660:
Start the server To start the serve
- Page 661 and 662:
Related publications IBM Redbooks T
- Page 663 and 664:
► Apache Jakarta Project taglib h
- Page 665 and 666:
How to get IBM Redbooks You can ord
- Page 667 and 668:
Index Symbols 283-284 Numerics 404
- Page 669 and 670:
debugger 507, 509 declarations 252
- Page 671 and 672:
M merge 517, 532-533, 536-537, 541-
- Page 673 and 674:
set method 412 SGML 310 shapes 124
- Page 675 and 676:
Server 471, 481-482 Server Configur
- Page 677:
IBM WebSphere Application Server -