616 CHAPTER 15 USING STRUTS, XDOCLET, AND
618 CHAPTER 15 USING STRUTS, XDOCLET, AND OTHER TOOLS Figure 15-14. Using a Tiles controller, the application can track the number of sessions and display that number in the header. You can see that the Tiles controller can be a very valuable asset in your Struts toolbox. You can reduce the amount of code needed in your actions and move specific logic to specific tiles. You might even eliminate the need to chain actions together, using multiple tiles and controller combinations instead. You re encouraged to consider using controllers because they can greatly help organize your code and view logic. By using controllers, actions can focus on page flow rather than preparing views. If you re developing a very small and simple application, Tiles might not be necessary. The difficult part of Tiles is finding a good example to operate from and extend. We hope that these examples, in combination with the struts-resume application, will make your Struts development journey easier. You should be able to use the basicLayout.jsp and tiles-config.xml files to get up and running. If you already know Struts and aren t using Tiles, you owe it to yourself (and your deadlines) to try it out. Using IDEs and Struts Development Environments We used to use Macromedia s HomeSite and vi for all our Java editing, because we hated the bloat and RAM wastage of an IDE. Furthermore, IDEs always seemed to complicate things more than they helped. With the maturity of tools like IDEA and Eclipse, using an IDE is fun again and worth our time (a gig of RAM doesn t hurt either). We ve never felt the need to use an IDE to help us configure our struts-config.xml or web.xml file. However, this was probably because these tools didn t exist when we first started working with Struts and web application. Now we re glad we learned the DTDs and we feel
Note: If you are looking for good and high quality web space to host and run your jsp application check Lunarwebhost jsp web hosting services