[opencms-dev] * Fetch USER_ID from cms_users table *

Robert Petermeier robert2.0 at gmx.de
Thu Nov 25 10:16:38 CET 2004


James schrieb:
> How do I fetch the user_id of a logged-in web user from the cms_users table?
>  
> I need to connect this user id to another database that links this user to
> their profile and pulls data into an ‘Edit user profile’ form.
>  
> Do I do something like 
>  
> CmsJspActionElement cmsjsp = new CmsJspActionElement( pageContext, request,
> response );

Try

CmsUUID userid = cmsjsp.getRequestContext().currentUser().getId();


Regards,
Robert



More information about the opencms-dev mailing list