© Brent Watson 2015
Brent WatsonStripes by Example10.1007/978-1-4842-0980-6_15

15. Good Design

Brent Watson 
(1)
316 Marine Ave, Brooklyn, USA
 
 
Brent Watson
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} ...

Get Stripes by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.