Re: Struts 1.2 Roles

2006-03-20 Thread Paul Benedict
You have two options: 1) Do not use roles. It is coded with mere functionality to return a 403 if the role is not there. Instead check the role explicity in the action and do what you want. 2) Use web.xml to handle the error codes. You can configure your application to take action on certain erro

Struts 1.2 Roles

2006-03-20 Thread Marcio Ghiraldelli
Hello, the atribute "roles" in an actionMapping configuration works perfectly, deniyng access to unauthorized users. Is there an way to redirect to a login page, instead showing a forbidden error page, like I can do in the web.xml, where a login and an error page can be configured?