[S2] hibernate and interceptors

2007-05-03 Thread Flemming Seerup
I'm using org.springframework.orm.hibernate3.support.OpenSessionInViewFilter with this mapping in web.xml hibernateFilter /* It's working just fine for my actions, but my interceptors fails with lazy loading errors. How do I hibernate enable my interceptors ? ---

Re: [S2] populating user roles

2007-05-03 Thread Flemming Seerup
on = userSession; } @Override public boolean isUserInRole(String role) { return userSession.hasRole(role); } } Where UserSession, is something that you store in the session at user login containing a list of roles to check against. On 5/2/07, Flemming Seerup <[EMAIL PROT

Re: [S2] populating user roles

2007-05-02 Thread Flemming Seerup
Am I missing something? I have a working version of an AuthInterceptor, but still no examples on how to control isUserInRole(). On manning.com I found a lightbody_src.zip from WW in action, but it doesn't handle roles. Could anybody tell me the location of Mark Mernards blog? /Flemming Quoti

[S2] populating user roles

2007-05-01 Thread Flemming Seerup
I would like to populate the user roles from a database during login, but have not found any examples how to do so in Struts2. I have found an example how to use RolesInterceptor to secure access to specific actions, but no hints on how to populate the roles. /Flemming -