Securing applications in Tomcat

In this section, we will learn how to protect resources in the Tomcat server. To keep the example consistent with the one we learned in the previous section for GlassFish, we will protect all pages in the admin folder. We will use the CourseManagementJDBC project we created in Chapter 4, Creating JEE Database Applications, to get started. Recall that in Chapter 4Creating JEE Database Applications, we deployed this project in the Tomcat server. Perform the following steps to import a project into the new workspace for this chapter and configure Tomcat:

  1. Copy the CourseManagementJDBC project from the Chapter 7Creating JEE Applications with EJB, project folder to the current workspace. Import the project into ...

Get Java EE 8 Development with Eclipse 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.