Internet and Web Resources

Answers to Self Review Exercises

27.1

a) . b) directives, actions, scripting elements, tag libraries. c) application, page, request, session. d) include. e) javax.servlet.jsp, javax.servlet.jsp.tagext. f) JSP container. g) scriptlets, comments, expressions, declarations, escape sequences.

27.2

a) False. Objects with page scope exist only as part of the page in which they are used. b) True. c) False. Action enables dynamic content to be included in a JavaServer Page. d) False. JSP comments and script-language comments are ignored and do not appear in the response. e) False. Objects with application scope are part of the JSP container application. f) True. g) True. h) True.

Exercises

27.3

Write a JSP page to output the string "Hello world!" ten times.

27.4

Modify Exercise 26.6 to run as a JSP page.

27.5

Rewrite Figure 27.15 to provide a form that allow users to select a book title and view the book's cover. Use a JSP expression instead of the getProperty JSP tag.

27.6

Create a JSP- and JDBC-based address book. Use the guest-book example of Fig. 27.20 through Fig. 27.24 as a guide. Your address book should allow the user to insert entries and search for entries. [Note: If you are not familiar with XHTML and CSS, refer to the chapters from our book Internet & World Wide Web HTP, 3/eIntroduction to XHTML: Part 1, Introduction to XHTML: Part 2 and Cascading Style Sheets (CSS), which are included as PDF documents on the CD that accompanies this book.]

27.7

Reimplement the Web application of Fig. 26.21 (favorite animal survey) using JSPs. [Note: If you are not familiar with XHTML and CSS, refer to the chapters from our book Internet & World Wide Web HTP, 3/eIntroduction to XHTML: Part 1, Introduction to XHTML: Part 2 and Cascading Style Sheets (CSS), which are included as PDF documents on the CD that accompanies this book.]

27.8

Modify your solution to Exercise 27.7 to allow the user to see the survey results without responding to the survey. [Note: If you are not familiar with XHTML and CSS, refer to the chapters from our book Internet & World Wide Web HTP, 3/eIntroduction to XHTML: Part 1, Introduction to XHTML: Part 2 and Cascading Style Sheets (CSS), which are included as PDF documents on the CD that accompanies this book.]

Introduction to Computers, the Internet and the World Wide Web

Introduction to Java Applications

Introduction to Classes and Objects

Control Statements: Part I

Control Statements: Part 2

Methods: A Deeper Look

Arrays

Classes and Objects: A Deeper Look

Object-Oriented Programming: Inheritance

Object-Oriented Programming: Polymorphism

GUI Components: Part 1

Graphics and Java 2D™

Exception Handling

Files and Streams

Recursion

Searching and Sorting

Data Structures

Generics

Collections

Introduction to Java Applets

Multimedia: Applets and Applications

GUI Components: Part 2

Multithreading

Networking

Accessing Databases with JDBC

Servlets

JavaServer Pages (JSP)

Formatted Output

Strings, Characters and Regular Expressions

Appendix A. Operator Precedence Chart

Appendix B. ASCII Character Set

Appendix C. Keywords and Reserved Words

Appendix D. Primitive Types

Appendix E. (On CD) Number Systems

Appendix F. (On CD) Unicode®

Appendix G. Using the Java API Documentation

Appendix H. (On CD) Creating Documentation with javadoc

Appendix I. (On CD) Bit Manipulation

Appendix J. (On CD) ATM Case Study Code

Appendix K. (On CD) Labeled break and continue Statements

Appendix L. (On CD) UML 2: Additional Diagram Types

Appendix M. (On CD) Design Patterns

Appendix N. Using the Debugger

Inside Back Cover



Java(c) How to Program
Java How to Program (6th Edition) (How to Program (Deitel))
ISBN: 0131483986
EAN: 2147483647
Year: 2003
Pages: 615

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