Chapter 4: In-depth Web
Data sharing is a common task in programming. In the code's level, it can be achieved by functions' parameters/arguments, global variables, external files, databases. And Java EE further provides other mechanisms for information sharing.
In this chapter, we will investigate how the pieces of the web application interact. No servlet stands alone. In today's modern web application, many components, including models, controllers, and views, work together to accomplish a goal. For example, we have used attributes in the mini MVC project to tie the controller and view together.