One solution would be to use a filter and place some flag in the current session which indicates if the user has been initialized. Map the filter so that its executed upon each request. If the user hasn't been initialized, then execute initialization code and update intialization flag, else ignore.
Another strategy would be to use lazy initialization and initialize things as needed by the user, instead of all at once. robert > -----Original Message----- > From: Tim Dudgeon [mailto:[EMAIL PROTECTED] > Sent: Monday, May 03, 2004 5:09 PM > To: [EMAIL PROTECTED] > Subject: initialising user settings following login > > > I'm wanting to use container based authentication (e.g form based login) > with my struts app, but initialize some user settings (which will be > read from a database) as soon as the user succesfully logs in. Any > suggestions for how to best achieve this? > > Thanks > > Tim > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]