scispace - formally typeset
Search or ask a question
Book

Inside Servlets: Server-Side Programming for the Java Platform

01 May 2001-
TL;DR: Inside Servlets teaches everything you need to know to exploit the power and portability of Java servlets for your Internet applications.
Abstract: Foreword. Preface. Introduction. I. INTRODUCTION TO WEB DEVELOPMENT. Internet Basics 3. Networks. Protocols. TCP/IP. Brief History of the Internet. Internet Addresses. Ports. Socket. Name Resolution. Firewalls. Protocol Tunneling. Proxy Servers. Internet Standards. Summary. 2. Web Basics. Brief History of the Web. URLs. Web Browsers. Web Servers. Common Gateway Interface. Summary. 3. Beyond Web Basics. HTTP. MIME. HTML Forms. Summary. II. INTRODUCTION TO SERVLETS. 4. Why Servlets? What Is a Servlet? Where Do Servlets Fit In? What Can Servlets Do? Why Are Servlets Better Than CGI? NSAPI/ISAPI. Summary. 5. Servlet Basics. Basic Servlet Structure. Servlet Lifecycle. Servlet Reloading. Dissecting Two Sample Servlets. Summary. 6. Servlet API Basics. HttpServlet. Class. GenericServlet. Class. ServletRequest Interface. HttpServletRequest Interface. ServletResponse Interface. HttpServletResponse Interface. Summary. 7. Writing Your First Servlet. Servlet Requirements. Main Page. View Bulletins. Post Bulletin Page. Save Bulletin Page. Complete Bulletin Board Servlet. Summary 193 8 Running Servlets. Apache Tomcat. Jrun. ServletExec. Resin. Summary. 9. Debugging Servlets. AHEADS = Servlet Debugging Process. Jbuilder. Forte for Java. VisualCafe. Summary. 10. Beyond Servlet API Basics. ServletInputStream Class.ServletOutputStream Class. ServletConfig Interface. ServletContext Interface. ServletException Class. UnavailableException Class. Summary. III. ADVANCED SERVLET CONCEPTS. 11. Writing Thread-Safe Servlets. What Is Thread Safety? Synchronization. Service, doGet, and doPost Local Variables. SingleThreadModel Interface. Background Threads. Summary. 12. HTTP Redirects. What Is an HTTP Redirect? HTTP Header Syntax for a Redirect. Sending a Redirect from a Servlet. Load-Balancing Servlet Using HTTP Redirects. Summary. 13. Cookies. What Is a Cookie? HTTP Header Syntax for a Cookie. Setting Cookies with the Servlet API. Summary. @CHAPTER 14. State and Session Management. What Is a Stateless Protocol? What Is a Session? State and Session Management Defined. State and Session Management Methods. Session Management with the Servlet API. Session Listeners and Events. Summary. 15. Request Forwarding, Server-Side Includes, Servlet Chaining. Using the RequestDispatcher Object. Server-Side Includes. Servlet Chaining. Summary. 16. Database Access with JDBC. JDBC Architecture. Accessing a Database. Basics. Advanced Database Concepts. Database Connection Pooling. Introduction to the MySQL Database. Summary. 17. Security. Basic Authentication. Form-Based Authentication. Digest Authentication. Secure Sockets Layer. Summary. 18. JavaServer. Introduction to JSP. Scope Rules. Implicit Objects. Directives. Scripting Elements. Comments. Actions. CCustom Tag Libraries. Using JSP and Servlets Together. Summary. 19. Packaging and Deployment. @AHEADS Building a Web Application Archive. Deploying on Apache Tomcat. Deploying on Jrun. Deploying on ServletExec. Summary. 20. Servlet Troubleshooting. Protocol Explorer Utility. Diagnostics Servlet. Summary. IV. SAMPLE SERVLETS. 21. Form Mailer Servlet. 22. File Upload Servlet. 23. Servlet Template Framework. Building a Web Application. Inside the Template Server. Guest Book Sample Application. V. SERVLET API QUICK REFERENCE. 24. Javax.Servlet Package. Interface RequestDispatcher. Interface Servlet. Interface ServletConfig. Interface ServletContext. Interface ServletRequest. Interface ServletResponse. Interface SingleThreadModel. Class Generic Servlet. Class ServletInputStream. Class ServletOutputStream. Class ServletException. Class UnavailableException 25. Javax.Servlet.http Package. Interface HttpServletRequest. Interface HttpServletResponse. Interface HttpSession. Interface HttpSessionBindingListener. Class Cookie. Class HttpServlet. Class HttpSessionBindingEvent. Class HttpUtils. 26. Servlet API 2.3 Update. Filtering. Application Lifecycle Events. Shared Library Dependencies. New Error and Security Attributes. Welcome Files. New Classes, Interfaces, and Methods. VI. APPENDICES. A: Common Well-Known Port Assignments. B: Java Port Scanner. C: The Internet Standardization Process. D: URL Syntax for Common Protocols. E: Meaning of URL Special Characters. F: US-ASCII Encoding for Unsafe URL Characters. G: Java HTTP Server. H: HTTP Response Status Codes. I: Common HTTP Request Header Fields. J: Deployment Descriptor DTD. K: Common MIME Types. L: printStackTrace to String. M: Servlet API Class Hierarchy Diagram. Index. 0201709066T04272001
Citations
More filters
Journal ArticleDOI
TL;DR: This paper explores extraction techniques such as the removal of unreachable methods and redundant fields, inlining of method calls, and transformation of the class hierarchy for reducing application size, and presents a uniform approach for supplying this input that relies on MEL, a modular specification language.
Abstract: Reducing application size is important for software that is distributed via the internet, in order to keep download times manageable, and in the domain of embedded systems, where applications are often stored in (Read-Only or Flash) memory. This paper explores extraction techniques such as the removal of unreachable methods and redundant fields, inlining of method calls, and transformation of the class hierarchy for reducing application size. We implemented a number of extraction techniques in Jax, an application extractor for Java, and evaluated their effectiveness on a set of large Java applications. We found that, on average, the class file archives for these benchmarks were reduced to 37.5p of their original size. Modeling dynamic language features such as reflection, and extracting software distributions other than complete applications requires additional user input. We present a uniform approach for supplying this input that relies on MEL, a modular specification language. We also discuss a number of issues and challenges associated with the extraction of embedded systems applications.

80 citations


Cites background from "Inside Servlets: Server-Side Progra..."

  • ...Other roles such as JavaBeans [Sun Microsystems 1997] and Servlets [Callaway 1999] can be modeled similarly....

    [...]

  • ...Inside Servlets: Server-Side Programming for the Java Platform....

    [...]

Proceedings ArticleDOI
Peter F. Sweeney1, Frank Tip1
01 Nov 2000
TL;DR: This paper introduces a modular specification language for expressing the information required for extraction in the context of Jax, an industrial-strength application extractor for Java, and presents a small case study in which different extraction scenarios are applied to a commercially available library-based application.
Abstract: In an increasingly popular model of software distribution, software is developed in one computing environment and deployed in other environments by transfer over the internet. Extraction tools perform a static whole-program analysis to determine unused functionality in applications in order to reduce the time required to download applications. We have identified a number of scenarios where extraction tools require information beyond what can be inferred through static analysis: software distributions other than complete applications, the use of reflection, and situations where an application uses separately developed class libraries. This paper explores these issues, and introduces a modular specification language for expressing the information required for extraction. We implemented this language in the context of Jax, an industrial-strength application extractor for Java, and present a small case study in which different extraction scenarios are applied to a commercially available library-based application.

29 citations

Book
01 Jan 2003
TL;DR: The Regnet Project aims to develop a formal information infrastructure for regulatory information management and compliance assistance that enables the augmentation of regulation text with tools and information that will help users understand and comply with the regulation.
Abstract: The Regnet Project aims to develop a formal information infrastructure for regulatory information management and compliance assistance. This paper discusses three basic milestones of current research and development efforts. The first is the creation of a document repository containing federal and state regulations and supplemental documents. This repository includes a suite of concept hierarchies that enable users to browse documents according to the terms they contain. The second is an XML framework for representing regulations and associated metadata. The XML framework enables the augmentation of regulation text with tools and information that will help users understand and comply with the regulation. The third milestone is the creation of a compliance assistance system built upon the XML framework. The prototype effort for the document repository has been focused on environmental regulations and related documents. The compliance assistance system is illustrated in the domain of used oil management.

21 citations

Journal ArticleDOI
TL;DR: This paper describes the development of a logic based regulation compliance assistance system that builds upon an extensible markup language (XML) framework that focuses on federal environmental regulations and related documents.
Abstract: This paper describes the development of a logic based regulation compliance assistance system that builds upon an extensible markup language (XML) framework. First, a document repository containing federal regulations and supplemental documents, and an XML framework for representing regulations and associated metadata are briefly discussed. The prototype effort for the regulation assistance system focuses on federal environmental regulations and related documents. The compliance assistance system is illustrated in the domain of used oil management. The overall objective is to develop a formal infrastructure for regulatory information management and compliance assistance.

15 citations

Proceedings ArticleDOI
29 Oct 2007
TL;DR: A new arithmetic which can be integrated into the Sugiyama algorithm for drawing hierachical graphs is presented, which is proposed after decreasing the number of so-called dummy nodes in a layered directed cyclic graph and displaying graceful LFBs topology layout.
Abstract: This work contributes to the research area of ForCES. The framework based on Web, including collecting data, transmitting data and drawing graph, is set using the Applet/Servlet frame according to J2EE. In particularly, we present a new arithmetic which can be integrated into the Sugiyama algorithm for drawing hierachical graphs. We propose applying this technique after decreasing the number of so-called dummy nodes in a layered directed cyclic graph and displaying graceful LFBs topology layout. Finally, a series of experimental results and some important conclusions are given.

2 citations