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 ?
---
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
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
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
-
4 matches
Mail list logo