JSP Application Session
This chapter provides tutorial notes and example codes on JSP application session. Topics include what is a session; what is the 'session' implicit object; how to pass values between JSP requests and pages; examples of pass values in different ways; using Perl LWP package for debugging.
What Is a Session
The "session" Implicit Object
Passing Values between JSP Pages
Testing Result of RegForm.jspx
Using Perl LWP Package for Debugging
- Session is a concept to represent a series of HTTP requests and
responses exchanged between a specific Web browser and a specific Web server.
- The "session" implicit object is an object provided by the JSP server to hold information and methods
common to all JSP requests or pages running under one session.
- The session ID is maintained by the server and the browser a cookie.
- Data values can be stored in the "session" object to pass it to the next request.
- Perl LWP package can do redirect automatically and is a good tool to simulate Web browser talking to JSP applications.
Table of Contents
About This Book
JSP (JavaServer Pages) Overview
Tomcat Installation on Windows Systems
JSP Scripting Elements
Java Servlet Introduction
JSP Implicit Objects
Syntax of JSP Pages and JSP Documents
►JSP Application Session
Managing Cookies in JSP Pages
JavaBean Objects and "useBean" Action Elements
Managing HTTP Response Header Lines
Non-ASCII Characters Support in JSP Pages
Performance of JSP Pages
EL (Expression Language)
Overview of JSTL (JSP Standard Tag Libraries)
JSTL Core Library
JSP Custom Tags
JSP Java Tag Interface
Custom Tag Attributes
Multiple Tags Working Together
File Upload Test Application
Using Tomcat on CentOS Systems
Using Tomcat on macOS Systems
Connecting to SQL Server from Servlet
Developing Web Applications with Servlet
Full Version in PDF/EPUB