I'm using SecurityFilter and use the Principal to store the user ID. The actions use the J2EE compliant request.getUserPrincipal(). Having userId, they can call business objects.
Nico.
Günther Wieser a écrit :
i for one put the user object into the session, as i have a lot of method calls against this use object on each page. if you don't use the user object often, put some identifier in the session to mark that the user has logged in, eg. key="user", value=<username>. if you need to access the user data later on, you can user the value of this session object to retrieve the real user object from a service or whatever.
but there is nothing like "built in support" in struts as far as i know.
kr, guenther
-----Original Message-----
From: wo_shi_ni_ba_ba [mailto:[EMAIL PROTECTED] Sent: Friday, March 11, 2005 12:55 AM
To: user@struts.apache.org
Subject: user management
do struts developers usually store user as an object in session? or does struts have additional framework for handling user management. thanks in advance
__________________________________
Do you Yahoo!? Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/
--------------------------------------------------------------------- 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]
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]