galeraa...estou fazendo um sistema de login usando o tomcat...jdbc realm...esta tudo funcionando perfeitamente...exceto uma coisinha...
quando o usuario loga correto ele vai pra pagina que ele queria entrar de inicio mesmo...isso ta certinho..
quando ele se loga errado ele vai pra pagina de erro_login....isso tambem esta correto...
o erro é quando ele se loga correto... mas o login dele n tem acesso a essa area...ele eh de outro role...
recebo o seguinte erro
HTTP Status 403 - Access to the requested resource has been denied
nao sei mais o que fazer...olhem meu web.xml
<?
xml version="1.0" encoding= "ISO-8859-1"?><!
DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd "><
web-app><
security-constraint> <web-resource-collection> <web-resource-name>Area Protegida </web-resource-name > <!-- Define the context-relative URL(s) to be protected --> <url-pattern>/*</ url-pattern > <http-method>GET</ http-method > <http-method>POST</ http-method > <http-method>PUT</ http-method > <http-method>DELETE</ http-method > </web-resource-collection> <auth-constraint> <!-- Anyone with one of the listed roles may access this area --> <role-name>administrador </role-name > </auth-constraint> <user-data-constraint> <transport-guarantee>NONE </transport-guarantee > </ user-data-constraint></
security-constraint><!-- Default login configuration uses form-based authentication -->
<
login-config><
auth-method>FORM</ auth-method ><
realm-name>Tomcat</ realm-name ><
form-login-config><
form-login-page>/jsp/login.jsp</ form-login-page ><
form-error-page>/jsp/erro_login.jsp</ form-error-page></
form-login-config></
login-config><!-- Security roles referenced by this web application -->
<
security-role><
role-name>administrador</ role-name ><
role-name>financeiro</ role-name ><
role-name>RH</role-name ></
security-role></
web-app>por favor me ajudem..atenciosamente--
Thiago Farias
Web Developer
Macromedia Certified ColdFusion Developer
[EMAIL PROTECTED] __._,_.___
SPONSORED LINKS
| Basic programming language | C programming language | Computer programming languages |
| The c programming language | C++ programming language | List of programming languages |
YAHOO! GROUPS LINKS
- Visit your group "jug-petropolis" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
