Learn Java for Web Development

(Tina Meador) #1
CHAPTER 4: Building a Web Application Using Struts 2 191

When the user is logged in, the user’s name is displayed on the header, and the menu appears,
as illustrated in Figure 4-20.


Figure 4-22 illustrates the directory structure with the template files.


Figure 4-22. The directory structure with the template files


You need to modify the pom.xml file with struts 2-tiles3-plugin and slf4j-log4j12, as illustrated in
Listing 4-33. These plug-ins are required to integrate Tiles with Struts 2.


Listing 4-33. struts-tiles and slf4j-log4j12 Plug-Ins



org.apache.struts
struts2-tiles3-plugin
2.3.15.1


org.slf4j
slf4j-log4j12
1.5.6
Free download pdf