Extra roles for users in Struts2
===

I've got an application in Struts2+Spring+Hibernate with Apache Tomcat and my login page, with roles, is working.  The roles are pretty basic, examples of which are Admin, User etc, and just determine the login page the user is given.

I want to add another role based on a column in the USER table called GroupID.  Each user belongs to a specific group, with the foreign key GroupID.  I need to be able to call this value from different action classes to prevent users from seeing information not related to their group.  For instance, I can get the user's username easily from any class by calling `ServletActionContext.getRequest().getUserPrincipal().getName()` so I'm wondering if I can somehow get something similar to allow me to return the GroupID value of a user.

I've put the proper query under login.config and called it groupQuery.  I'm not sure what to do from this point though; I can't find anything on google.  I'm assuming I need to modify my web.xml and possibly extend ServletActionContext but I'm not sure.

Thanks for your help.