I think setters are a good alternative to passing variables in the constructor. It may not be needed for this example, but still conforms to standards.
Bueza, You can setup a default constructor that takes no parameters.
In fact, if you want use those Cards as JSP page scope beans then you'll HAVE to set up setters and an empty constructor.
I don't mind breaking some standards if the behaviour of the object calls for it. Sometimes we code a default constructor and make it private to eliminate the possibility that it be "automagically" built by a JSP that should be receiving it ready to go.
Bookmarks