O'Reilly logo

Stripes by Example by Brent Watson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

© 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} ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required