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
return true; } } } return false; } } Hope this helps Alan -Original Message- From: Tony Haidamous [mailto:[EMAIL PROTECTED] Sent: 30 January 2006 10:16 To: Struts Users Mailing List Subject: Roles in struts I noticed that action mapping can contain a roles parameter. Any idea

Roles in struts

2006-01-30 Thread Tony Haidamous
I noticed that action mapping can contain a roles parameter. Any idea how and where to define those roles & how to set roles for user when authenticated. Any sample code I can find on this matter? Thanks Best Regards, Tony HAIDAMOUS Computer Engineer CM