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 <jsp:forward>. Forwarding to HTML and JSP. Forwarding to Servlets. 7. Working with Forms. Using Form Controls <FORM> Tag. <INPUT> Tag. <TEXTAREA> Tag. <SELECT> Tag (Drop-Down Lists). Processing Form Values. Validating the Form and Populating It Dynamically. Considering Frames. When to Use Frames. Issues with Frames. Summary. 8. Interacting with Databases. JDBC Data Access Models. 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. SuperBookmarks.com. Creating Your Database. Connecting to a Database. Executing SQL Statements Summary. 9. Securing Your Applications. Understanding Security Concerns. Protecting Your Server. Protecting Your Data. Protecting Your Users. Protecting Your Application. Authentication Options. Rolling Your Own Authentication. Form-Based Authentication. HTTP Challenge and Response. Directory Services. The Java Naming and Directory Interface (JNDI). LDAP Integration. Implementing Access Control. Using a Text File for Authentication. Using LDAP Authentication. Using Servlet 2.2 Web Application Security. 10. Managing Session States. Understanding Session State Management. Using the Session Scope. Setting Simple Values into the Session Scope. Saving Complex Data Types in the Session Scope. Managing the Session. Using Embedded URLs (Rewriting). Using Cookies. Using Hidden Form Fields. Summary. 11. Integrating with Email. Getting Started. Using the JavaMail API. 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 Summary. 12. Developing Custom Tags. Understanding Custom Tags. Defining a Tag. CFML Tags. Developing Simple Tags: No Attributes or Body Content. 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. Developing Complex Tags: Adding Attributes and Evaluating Body Content. A Tag for Retrieving and Formatting Syndication Content. Existing JSP Tag Library Projects. JRun Tag Library from Allaire Corporation. Orion Tag Libraries from Orionserver. Taglibs Project from Jakarta. Summary. 13. Interacting with Enterprise JavaBeans. Understanding EJB. The Container. The Remote Interface. The Home Interface. The Bean Implementation. Session Beans. Stateless Session Beans. Stateful Session Beans. Entity Beans. Container-Managed Persistence. Bean-Managed Persistence. An Entity Bean Example. Implementing Enterprise JavaBeans. Interacting with an Entity Bean. Interacting with a Stateless Session Bean. Interacting with Stateful Session Beans. Summary. 14. Handling Errors. Understanding Error Handling. Implementing Exception Handling. The try Block. The catch Clause. The finally Block. Bubbling Up. Runtime Exceptions. Throwing Exceptions. Using Error Pages. Summary. 15. Debugging and Troubleshooting. Container Problems. Non-Compliant Containers. Deploying Your JSPs, Beans, and Servlets. Port Conflicts. Properties and Configuration Files. Using Logs. Java Virtual Machine Problems. Getting an OutOfMemoryError. Getting a NullPointerException. Getting a NoClassDefFoundError. Unresponsive JSP Containers. Getting Dr. Watsons or Core Dumps. Database Problems. Choosing the Best JDBC Driver. Performance and Profiling Tools. Using IDEs to Code and Debug JSPs. Appendix A. JSP Syntax. JSP Directives. <% %>. <%--.-%>. <%! %>. <%= %>. <%@ include %>. <%@ page %>. <%@ taglib %>. JSP Tags. <jsp:fallback>. <jsp:forward>. <jsp:getProperty>. <jsp:include>. <jsp:param>. <jsp:params>. <jsp:plugin>. <jsp:setProperty>. <jsp:useBean>. Appendix B. Using Popular JSP Servers. JRun. Orion Server. Resin. ServletExec 3.0. Tomcat. Appendix C. Using Java Methods to Retrieve CGI Environment Variables. Looping Through Headers. Index.

「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.)
ページトップへ