Getting Started
  • Introduction
  • Setting Up Your System
  • A "Hello World" Servlet
  • A "Hello World" JSP (Java Server Page)
  • Deployment Descriptors: the Web.xml File
  • Deploying Your Application to a Local Server
  • Important Note ...
  • Deploying Your Application to the Internet -- For Free
Nuts and Bolts
  • Importing Java Classes Into JSPs
  • Getting URL Parameters
  • Scripting HTML
  • Including Files In Other Files
  • Forwarding and Redirecting
  • The Declaration Tag
  • JSP Tags Summary
  • Model 1 vs. Model 2 Architecture
  • Using External APIs in Web Applications
  • The Servlet Lifecycle
Beans and Forms
  • JSP Beans
  • Beans and Scope
  • Setting Bean Properties Using Parameters
  • Forms
  • HTTP Posts
  • Using Beans to Store Form Data
  • Adding Validation to Beans
  • Self-Validating Forms
  • Validating Forms Using MVC Architecture
Some Useful Objects
  • The Session Object
  • URL Rewriting: Supporting Sessions Without Cookies
  • The Servlet Context Object
  • Getting Initialisation Parameters from web.xml
  • Scoped Objects Review
  • Cookies
Databases
  • Connecting to a Database
  • Setting Up a JNDI Data Source
  • Querying Databases
  • Inserting Data Into Databases
Sending Emails
  • Sending Emails: Prerequisites
  • Sending Emails with the Mail API
Simplify Your Code With JSTL
  • Beginning JSTL: Hello World JSTL
  • Accessing Bean Values in JSTL
  • Getting URL Parameters in JSTL
  • The JSTL "if" Statement
  • The Choose Tag in JSTL
  • The foreach loop in JSTL
  • Referencing Java Objects in JSTL
  • JSTL Implicit Objects
  • Using Maps in EL
  • Outputting Variables: The c:out Tag vs. Using EL Directly
  • forEach: Iterating Through Lists
  • Using External Files: Graphics, CSS, etc
  • Reusable Fragments Using JSTL c:import
  • SQL Queries with JSTL
  • Setting Variables in JSTL
  • Expressions in EL
  • Creating URLs With JSTL
  • Wildcards and Getting a Single Row in JSTL
  • JSTL Functions
  • SQL Updates and Transactions in JSTL
  • Formatting Using JSTL
  • Custom Tags
Source Code
  • Source Code
Where Now?
  • Some Final Words ....
Extra!
  • Uploading Files: Allowing the User to Upload Images and Other Stuff