A ServletConfig is for servlet configuration (it doesn’t say JSPConfig). So if you want other parts of your application to use the same info you put in the servlet’s init parameters in the DD, you need something more.
We could do it this way. The request object lets you set attributes (think of them as a name/value pair where the value can be any object) that any other servlet or JSP that gets the request can use. That means any servlet or JSP to which the request is forwarded using a RequestDispatcher. We’ll look at RequestDispatcher in detail at the end of this chapter, but for now all we care about is getting the data (in this case the email address) to the pieces of the web app that need it, rather than just one servlet.