At this point, the shop lacks the structure for well-regulated navigation through the site. Individual JSP pages are connected to each other, but they can be accessed only if you know their names. This chapter will bring order to all this chaos. A central servlet takes on the role of captain. We will also implement menus and a consistent page layout with the help of Struts templates, known as Tiles.
Let’s start by creating a new context
shop5, as a copy of
First, we will develop our own controller servlet and then look at possibilities offered by Struts. This will give us a thorough understanding of the controller’s function and will highlight particular problems such ...