1.

Record Nr.

UNINA9910828175703321

Autore

Kurniawan Budi

Titolo

Servlet and JSP : a tutorial / / Budi Kurniawan

Pubbl/distr/stampa

[Vancouver, Canada] : , : [Brainy Software], , 2012

Edizione

[First edition.]

Descrizione fisica

1 online resource (727 pages)

Collana

A Tutorial

Disciplina

006.7862

Soggetti

Java (Computer program language)

Servlets

Lingua di pubblicazione

Inglese

Formato

Materiale a stampa

Livello bibliografico

Monografia

Note generali

Includes index.

Nota di contenuto

Cover Page; Title Page; Copyright Page; Table of Contents; Introduction; Servlet/JSP Application Architecture; The Hypertext Transfer Protocol (HTTP); About This Book; Downloading the Sample Applications; Choosing a Framework; Chapter 1: Servlets; Servlet API Overview; Servlet; Writing A Basic Servlet Application; ServletRequest; ServletResponse; ServletConfig; ServletContext; GenericServlet; HTTP Servlets; Working with HTML Forms; Using the Deployment Descriptor; Summary; Chapter 2: Session Management; URL Rewriting; Hidden Fields; Cookies; HttpSession Objects; Summary

Chapter 3: JavaServer PagesAn Overview of JSP; Comments; Implicit Objects; Directives; Scripting Elements; Actions; Summary; Chapter 4: The Expression Language; The Expression Language Syntax; Accessing JavaBeans; EL Implicit Objects; Using Other EL Operators; Using the Expression Language; Configuring the EL in JSP 2.0 and Later Versions; Summary; Chapter 5: JSTL; Downloading JSTL; JSTL Libraries; General-Purpose Actions; Conditional Actions; Iterator Actions; Formatting Actions; Functions; Summary; Chapter 6: Writing Custom Tags; Custom Tag Overview; Simple Tag Handlers; SimpleTag Example

Handling AttributesManipulating the Tag Body; Writing EL Functions; Distributing Custom Tags; Summary; Chapter 7: Tag Files; Introduction to Tag Files; Your First Tag File; Tag File Directives; doBody; invoke; Summary; Chapter 8: Listeners; Listener Interfaces and Registration; Servlet Context Listeners; Session Listeners; ServletRequest Listeners; Summary; Chapter 9: Filters; The Filter API; Filter Configuration;



Example 1: Logging Filter; Example 2: Image Protector Filter; Example 3: Download Counter Filter; Filter Order; Summary; Chapter 10: Application Design; Model 1 Overview

Model 2 OverviewModel 2 with A Servlet Controller; Model 2 with A Filter Dispatcher; Validators; Database Access; Dependency Injection; Summary; Chapter 11: File Upload; Client Side Programming; Server Side Programming; Upload Servlet Example; Multiple Uploads; Upload Clients; Summary; Chapter 12: File Download; File Download Overview; Example 1: Hiding A Resource; Example 2: Preventing Cross-Referencing; Summary; Chapter 13: Decorating Requests and Responses; The Decorator Pattern; Servlet Wrapper Classes; Example: AutoCorrect Filter; Summary; Chapter 14: Asynchronous Processing; Overview

Writing Async Servlets and FiltersWriting Async Servlets; Async Listeners; Summary; Chapter 15: Security; Authentication and Authorization; Authentication Methods; Secure Sockets Layer (SSL); Programmatic Security; Summary; Chapter 16: Deployment; Deployment Descriptor Overview; Deployment; Web Fragments; Summary; Chapter 17: Dynamic Registration and Servlet Container Initializers; Dynamic Registration; Servlet Container Initializers; Summary; Chapter 18: Introduction to Struts 2; The Benefits of Struts 2; How Struts 2 Works; Interceptors; Struts 2's Configuration Files

A Simple Struts Application

Sommario/riassunto

Servlet and JavaServer Pages (JSP) are the underlying technologies for developing web applications in Java. They are essential for any programmer to master in order to effectively use frameworks such as JavaServer Faces, Struts 2, or Spring MVC.    Covering Servlet 3.0 and JSP 2.2, this book explains the important programming concepts and design models in Java web development as well as related technologies and new features in the latest versions of Servlet and JSP. With comprehensive coverage and a lot of examples, this book is a guide to building real-world applications. Topics discussed in