Murach's Java Servlets and JSP

This chapter shows how to code JavaServer Pages (JSPs). In particular, it shows how to code a JSP that uses scriptlets, expressions, parameters, and regular Java classes to write data to a text file. To see how well this chapter works, you can download this chapter for free.

Chapter 4 How to develop JavaServer Pages
The Email List application 102
The user interface for the application 102
The code for the HTML page that calls the JSP 104
The code for the JSP 106
How to create a JSP 108
How to code scriptlets and expressions 108
How to use the methods of the request object 110
Where and how to save a JSP 112
How to request a JSP 114
When to use the Get and Post methods 116
How to use regular Java classes with JSPs 118
The code for the User and UserIO classes 118
Where and how to save and compile regular Java classes 120
A JSP that uses the User and UserIO classes 122
How to use three more types of JSP tags 124
How to import classes 124
How to code comments in a JSP 126
How to declare instance variables and methods 128
A JSP that imports classes and declares instance variables 130
How to work with JSP errors 132
How to debug JSP errors 132
How to use a custom error page 134
When and how to view the servlet that's generated for a JSP 136
t




Murach's Java Servlets and JSP

Learn more about this book

Add this book to your cart

Download this chapter