Chapter 14. Advanced Topics

The preceding chapters have included more than enough information to build almost any conceivable Web site by using JSPs, beans, databases, and servlets. In fact, however, a great deal in the JSP, servlet, JDBC, and bean specifications could not possibly be included here. This book has concentrated on those features that are most common: the ones that will be used 90 percent of the time. This chapter surveys a few remaining topics that should cover another 5 percent.

Declaring Variables and Methods

As JSPs are servlets and class variables and new methods can be added to servlets, it should be possible to do the same to a JSP. This can be done by placing the declaration between <jsp:delcare> and </jsp:declare> tags or, ...

Get JavaServer Pages™, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.