Java servlet programming
Servlets are an exciting and important technology that ties Java to the Web, allowing programmers to write Java programs that create dynamic web content. Java Servlet Programming covers everything Java developers need to know to write effective servlets. It explains the servlet lifecycle, showing h...
Autor principal: | |
---|---|
Otros Autores: | |
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
Beijing ; Sebastopol, California :
O'Reilly
2001.
|
Edición: | 2nd ed |
Colección: | Java series (O'Reilly & Associates)
|
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009627347306719 |
Tabla de Contenidos:
- Table of Contents; Preface; Servlet API 2.2; Servlet API 2.3; Readers of the First Edition; Audience; What You Need to Know; About the Examples; Organization; Conventions Used in This Book; Request for Comments; Acknowledgments; Acknowledgments from the First Edition; Introduction; History of Web Applications; Common Gateway Interface; FastCGI; PerlEx; mod_perl; Other Solutions; Server extension APIs; Server-side JavaScript; Active Server Pages; JavaServer Pages; Java Servlets; Support for Servlets; Standalone Servlet Containers; Add-on Servlet Containers; Embeddable Servlet Containers
- Additional ThoughtsThe Power of Servlets; Portability; Power; Efficiency and Endurance; Safety; Elegance; Integration; Extensibility and Flexibility; HTTP Servlet Basics; HTTP Basics; Requests, Responses, and Headers; GET and POST; Other Methods; The Servlet API; Page Generation; Writing Hello World; Running Hello World; Handling Form Data; Handling POST Requests; Handling HEAD Requests; Web Applications; The WEB-INF Directory; The Deployment Descriptor; Moving On; The Servlet Lifecycle; The Servlet Alternative; A Single Java Virtual Machine; Instance Persistence; A Simple Counter
- A Simple Synchronized CounterA Holistic Counter; Servlet Reloading; Init and Destroy; A Counter with Init; A Counter with Init and Destroy; Single-Thread Model; Background Processing; Load on Startup; Client-Side Caching; Server-Side Caching; Retrieving Information; The Servlet; Getting a Servlet Init Parameter; Getting Servlet Init Parameter Names; Getting a Servlet's Name; The Server; Getting Information About the Server; Writing to a Temporary File; Locking a Servlet to a Server; Getting a Context Init Parameter; Determining the Servlet Version; The Client
- Getting Information About the Client MachineRestricting Access; Getting Information About the User; A Personalized Welcome; The Request; Request Parameters; Generating a License Key; Path Information; Getting path information; Ad hoc path translations; Getting the context path; Getting MIME types; Serving Files; Reading from an Abstract Resource; Serving Resources; Serving Resources for Download; Determining What Was Requested; How It Was Requested; Request Headers; Accessing header values; Wading the Input Stream; Handling POST requests using the input stream
- Receiving files using the input streamExtra Attributes; Sending HTML Information; The Structure of a Response; Sending a Normal Response; Using Persistent Connections; Response Buffering; Controlling the Response Buffer; Status Codes; Setting a Status Code; Improving ViewFile Using Status Codes; HTTP Headers; Setting an HTTP Header; Redirecting a Request; Watching Links to Other Sites; Client Pull; When Things Go Wrong; Status Codes; Configuring Error Pages; Logging; Reporting; Exceptions; ServletException; UnavailableException; Configuring Exception Pages; Knowing when no one's listening
- Six Ways to Skin a Servlet Cat