Nikolaos Giannopoulos wrote: > Hi, > > > Unfortunately we can't have the same zero argument constructor coded 2 > different ways...
Yes, you can: If you derive from your class class UserInitialized extends User { public UserInitialized() { super(); /* Do some initialization */} } That might be an option depending on your requirements. Just need to use the UserInitialized class in your jsp's. Or you could have a a bean that does the initialization: class UserInitializer { User getInitializedUser() {User u = new User(); u.setFoo("bar"); return u; } } How do you load your user bean in the first place? If you use a getter method of an action bean you could to the initialization in that getter method. > > --Nikolaos Yannik ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users