Re: Roles in struts

2006-01-30 Thread Marcelo Morales
On Jan 30, 2006, at 10:30 AM, Tony Haidamous wrote: How to grant the role to the user? It is application server and data source dependant. There is configuration to be done in web.xml. Check out the servlet specification or just goole: web descriptor j2ee security role or web.xml secur

RE: Roles in struts

2006-01-30 Thread Tony Haidamous
PROTECTED] MSN:[EMAIL PROTECTED] -Original Message- From: Marcelo Morales [mailto:[EMAIL PROTECTED] Sent: Monday, January 30, 2006 4:17 PM To: Struts Users Mailing List Subject: Re: Roles in struts Hello On Jan 30, 2006, at 7:17 AM, Alan Comeau wrote: > You need to subclass the requ

Re: Roles in struts

2006-01-30 Thread Marcelo Morales
Hello On Jan 30, 2006, at 7:17 AM, Alan Comeau wrote: You need to subclass the request processor and override the processRoles method, which by default does nothing. That's Wrong. By default (1.2), this method is defined in org.apache.struts.action.RequestProcessor. And checks roles agai

RE: Roles in struts

2006-01-30 Thread Alan Comeau
You need to subclass the request processor and override the processRoles method, which by default does nothing. I have included some code which may help. public class BHBRequestProcessor extends DelegatingTilesRequestProcessor { protected boolean processRoles(javax.servlet.ht