JavaServer pages application development

著者

    • Forta, Ben

書誌事項

JavaServer pages application development

Ben Forta ... [et al.]

Sams, c2001

大学図書館所蔵 件 / 1

この図書・雑誌をさがす

注記

Includes index

内容説明・目次

内容説明

Developing Java Server Pages teaches JSP programming, with emphasis on techniques that allow programmers to get the job done quickly and efficiently. This book shows you how JSP, the next chapter in the evolution of Java as a server side development language, is used and how it can be used. Workarounds in advice and code are explored to provide practical and realistic solutions to problems. Other technologies are also introduced, including Servlets, the Java language, JDBC, and beans. Using extensive examples, and a hands-on approach, authors Paul Colton, Andre Lei, and Scott Stirling present the most important topics for web developers, including security, database interaction, custom tags and scalability. All examples are based on hard earned, real-world experience.

目次

Introduction. Who Should Use This Book. How to Use This Book. What You'll Learn. 1. Understanding JSP. Internet and World Wide Web Basics. The Internet. The World Wide Web. Web Browsers and Web Servers. Application Servers. Components, Containers, and Connectors. The Java Advantage. Understanding Java. The Java Virtual Machine. Java Terminology. JSP and Servlets. Putting Java to Work. 2. Creating a JSP Page. Getting Under the Hood. Hello World. Getting the Request. Translating the Page. Viewing the Source. JRun. Resin. The Jakarta Project. Understanding Access Models. Model. Model. Understanding the Model-View-Controller (MVC) Pattern. A Quick History Lesson on MVC. WYSIWYG Example. Web Application Example. Directives. The page Directive. The include Directive. The taglib Directive. Commenting Your Code. Source Comments. Hidden Comments. Coding Tips. Use Cascading Style Sheets (CSS). Keep JavaScript and JSP Uncluttered. Use XHTML. 3. Using Scripting Elements. Using Expressions. Using Strings in Expressions. Using Methods and Constructors in Expressions. Using Declarations. Java's Primitive Data Types. Java's Operators. Creating a Hit Counter in JSP. Creating a Table Using a JSP Declaration. Using Scriptlets. 4. Using Available Objects. Understanding Objects. Understanding JSP's Implicit Objects. Understanding Object Instantiation. Relating JSP to Servlets, CGI, and HTTP. Understanding the Java Reflection API. Understanding Inheritance. Using the exception Object. Viewing the Class Hierarchies of All the Implicit Objects. Understanding Encapsulation. Using Reflection to Introspect the Implicit Objects. Understanding Scope. Understanding the Scope of the JSP Implicit Objects. 5. Using Beans. Understanding JavaBeans. Accessor/Mutator Methods and the No-Argument Constructor. Writing Your Own JavaBeans. Using JSP Standard Actions and JavaBeans. Using JavaBeans in JSP. Creating a Hit Counter in JSP. Creating a Quote Randomizer in JSP. Creating a Message Board Web Application in JSP. Wrapping Up. 6. Connecting Pages. Understanding URLs. Constructing a URL. Scheme: request.getScheme(). Server Name: request.getServerName(). Port Number: request.getServerPort(). Script Name: request.getRequestURI(). Filename and Extension: request.getServletPath(). Query String: request.getQueryString(). HTML Anchor: Client-Side Functionality. Using the GET Method. Using Query Strings. Generating Query Strings. Processing Query Strings. Escaping URLs. Linking JSP to HTML, JSP, and Servlets with . Forwarding to HTML and JSP. Forwarding to Servlets. 7. Working with Forms. Using Form Controls Tag. Tag. Tag. <SELECT> Tag (Drop-Down Lists).<p></p><p></p>Processing Form Values. Validating the Form and Populating It Dynamically. Considering Frames.<p></p><p></p>When to Use Frames. Issues with Frames. Summary.<p></p><br /><br /><b>8. Interacting with Databases.</b> <br /><p></p>JDBC Data Access Models.<p></p><p></p>Type 1: JDBC-ODBC Bridge and ODBC Driver. Type 2: Native-API Partly Java Driver. Type 3: JDBC-Net Pure Java Driver. Type 4: Native Protocol Pure Java Driver.<p></p><p></p>SuperBookmarks.com.<p></p><p></p>Creating Your Database. Connecting to a Database. Executing SQL Statements<p></p><p></p>Summary.<p></p><br /><br /><b>9. Securing Your Applications.</b> <br /><p></p>Understanding Security Concerns.<p></p><p></p>Protecting Your Server. Protecting Your Data. Protecting Your Users. Protecting Your Application.<p></p><p></p>Authentication Options.<p></p><p></p>Rolling Your Own Authentication. Form-Based Authentication. HTTP Challenge and Response.<p></p><p></p>Directory Services.<p></p><p></p>The Java Naming and Directory Interface (JNDI). LDAP Integration.<p></p><p></p>Implementing Access Control.<p></p><p></p>Using a Text File for Authentication. Using LDAP Authentication. Using Servlet 2.2 Web Application Security.<p></p><br /><br /><b>10. Managing Session States.</b> <br /><p></p>Understanding Session State Management. Using the Session Scope.<p></p><p></p>Setting Simple Values into the Session Scope. Saving Complex Data Types in the Session Scope. Managing the Session.<p></p><p></p>Using Embedded URLs (Rewriting). Using Cookies. Using Hidden Form Fields. Summary.<p></p><br /><br /><b>11. Integrating with Email.</b> <br /><p></p>Getting Started. Using the JavaMail API.<p></p><p></p>Creating javax.mail.Session. Using javax.mail.Transport. Composing javax.mail.Message. Connecting to javax.mail.Store. Using javax.mail.Folder. ColdMail.com: A JSP and JavaMail Case Study. Introduction to Tag Extensions<p></p><p></p>Summary.<p></p><br /><br /><b>12. Developing Custom Tags.</b> <br /><p></p>Understanding Custom Tags.<p></p><p></p>Defining a Tag. CFML Tags.<p></p><p></p>Developing Simple Tags: No Attributes or Body Content.<p></p><p></p>Obtaining the JSP and Servlet APIs. Understanding a Basic Tag Handler. Understanding the Tag and BodyTag Interfaces. Understanding the TagSupport and BodyTagSupport Classes. Writing Our First Tag Handler.<p></p><p></p>Developing Complex Tags: Adding Attributes and Evaluating Body Content.<p></p><p></p>A Tag for Retrieving and Formatting Syndication Content.<p></p><p></p>Existing JSP Tag Library Projects.<p></p><p></p>JRun Tag Library from Allaire Corporation. Orion Tag Libraries from Orionserver. Taglibs Project from Jakarta.<p></p><p></p>Summary.<p></p><br /><br /><b>13. Interacting with Enterprise JavaBeans.</b> <br /><p></p>Understanding EJB.<p></p><p></p>The Container. The Remote Interface. The Home Interface. The Bean Implementation.<p></p><p></p>Session Beans.<p></p><p></p>Stateless Session Beans. Stateful Session Beans.<p></p><p></p>Entity Beans.<p></p><p></p>Container-Managed Persistence. Bean-Managed Persistence. An Entity Bean Example.<p></p><p></p>Implementing Enterprise JavaBeans.<p></p><p></p>Interacting with an Entity Bean. Interacting with a Stateless Session Bean. Interacting with Stateful Session Beans.<p></p><p></p>Summary.<p></p><br /><br /><b>14. Handling Errors.</b> <br /><p></p>Understanding Error Handling. Implementing Exception Handling.<p></p><p></p>The try Block. The catch Clause. The finally Block. Bubbling Up. Runtime Exceptions. Throwing Exceptions.<p></p><p></p>Using Error Pages. Summary.<p></p><br /><br /><b>15. Debugging and Troubleshooting.</b> <br /><p></p>Container Problems.<p></p><p></p>Non-Compliant Containers. Deploying Your JSPs, Beans, and Servlets. Port Conflicts. Properties and Configuration Files. Using Logs.<p></p><p></p>Java Virtual Machine Problems.<p></p><p></p>Getting an OutOfMemoryError. Getting a NullPointerException. Getting a NoClassDefFoundError. Unresponsive JSP Containers. Getting Dr. Watsons or Core Dumps.<p></p><p></p>Database Problems.<p></p><p></p>Choosing the Best JDBC Driver. Performance and Profiling Tools.<p></p><p></p>Using IDEs to Code and Debug JSPs.<p></p><br /><br /><b>Appendix A. JSP Syntax.</b> <br /><p></p>JSP Directives.<p></p><p></p>. . . . . . .<p></p><p></p>JSP Tags.<p></p><p></p><jsp:fallback>. <jsp:forward>. <jsp:getProperty>. <jsp:include>. <jsp:param>. <jsp:params>. <jsp:plugin>. <jsp:setProperty>. <jsp:useBean>.<p></p><br /><br /><b>Appendix B. Using Popular JSP Servers.</b> <br /><p></p>JRun. Orion Server. Resin. ServletExec 3.0. Tomcat.<p></p><br /><br /><b>Appendix C. Using Java Methods to Retrieve CGI Environment Variables.</b> <br /><p></p>Looping Through Headers.<p></p><br /><br /><b>Index.</b> <br />

「Nielsen BookData」 より

詳細情報

  • NII書誌ID(NCID)
    BA5603108X
  • ISBN
    • 067231939X
  • 出版国コード
    us
  • タイトル言語コード
    eng
  • 本文言語コード
    eng
  • 出版地
    Indianapolis, Ind.
  • ページ数/冊数
    ix, 398 p.
  • 大きさ
    24 cm.
  • 付属資料
    1 computer optical disk (4 3/4 in.)
ページトップへ