After using a framework for a number of years, you come across good design practices. This chapter covers good design practice with Stripes.
Use BaseActionBean.java
First, use a base ActionBean. The BaseActionBean.java laid out in Chapter 3 (see Listing 3.4) and used throughout this book will help a lot. It will hide your ActionBeanContext get/set methods and also provide a place where you can include common methods, such as getDatabaseFactory() or isUserLoggedIn(). Keep in mind that such methods can be used by the JSPs too! For example, ${actionbBean.userLoggedIn} ...