29.01.2013 Views

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

8.3 Using JSPs in the Online Catalog sample. . . . . . . . . . . . . . . . . . . . . . . . 265<br />

Chapter 9. Using tag libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275<br />

9.1 Custom tag library (taglibs) concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . 276<br />

9.1.1 Motivation for custom tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276<br />

9.1.2 When to use . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 278<br />

9.1.3 Common custom tag usages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279<br />

9.1.4 How they work. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279<br />

9.1.5 An inside look at a taglib . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280<br />

9.1.6 Using tag libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 285<br />

9.2 Studio Site Developer and tag libraries . . . . . . . . . . . . . . . . . . . . . . . . . . 288<br />

9.2.1 JSP wizard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 288<br />

9.2.2 Using the Insert custom tag dialog . . . . . . . . . . . . . . . . . . . . . . . . . 295<br />

9.2.3 Snippets view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 296<br />

9.2.4 Tag libraries included with Studio Site Developer. . . . . . . . . . . . . . 296<br />

9.2.5 Tag libraries used in the example sample applications. . . . . . . . . . 299<br />

9.3 Using a tag library in the Online Catalog sample . . . . . . . . . . . . . . . . . . 301<br />

9.3.1 Step 1: Creating a JSP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303<br />

9.3.2 Step 2: Adding a taglib directive . . . . . . . . . . . . . . . . . . . . . . . . . . . 304<br />

9.3.3 Step 3: Adding the taglib tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305<br />

9.3.4 Step 4: Inserting the final code . . . . . . . . . . . . . . . . . . . . . . . . . . . . 307<br />

9.4 For more information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 308<br />

Chapter 10. Working with XML. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309<br />

10.1 XML overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 310<br />

10.1.1 XML markup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 310<br />

10.1.2 Well-formed XML documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313<br />

10.1.3 Document type definitions (DTDs) . . . . . . . . . . . . . . . . . . . . . . . . 313<br />

10.1.4 Validation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 314<br />

10.1.5 XML namespaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 314<br />

10.1.6 XML schema . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 315<br />

10.1.7 Schema and style using XSLT and XSL . . . . . . . . . . . . . . . . . . . . 318<br />

10.1.8 XPath . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 319<br />

10.2 Working with XML in Studio Site Developer . . . . . . . . . . . . . . . . . . . . . 319<br />

10.2.1 The XML perspective . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321<br />

10.2.2 Wizards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 322<br />

10.2.3 Editors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325<br />

10.2.4 XML sample applications in Studio Site Developer. . . . . . . . . . . . 331<br />

10.3 Using XML in the Online Catalog sample . . . . . . . . . . . . . . . . . . . . . . . 332<br />

10.4 For more information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 353<br />

Chapter 11. Working with Web services . . . . . . . . . . . . . . . . . . . . . . . . . . 355<br />

11.1 Web services overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 356<br />

11.1.1 The concept of a service-oriented architecture (SOA) . . . . . . . . . 357<br />

vi <strong>IBM</strong> <strong>WebSphere</strong> <strong>Application</strong> <strong>Server</strong> - Express V5.0.2 Developer Handbook

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!