I have this lines in my web.xml
<security-role>
<role-name>test</role-name>
</security-role>
<security-constraint>
<display-name>Security Test</display-name>
<web-resource-collection>
<web-resource-name>AcessosGerais</web-resource-name>
<url-pattern>/welcomeJSF.jsp</url-pattern>
<url-pattern>/faces/welcomeJSF.jsp</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
<http-method>HEAD</http-method>
<http-method>PUT</http-method>
<http-method>OPTIONS</http-method>
<http-method>TRACE</http-method>
<http-method>DELETE</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>test</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<realm-name>dbAuth</realm-name>
<form-login-config>
<form-login-page>/login.jsp</form-login-page>
<form-error-page>/loginerr.jsp</form-error-page>
</form-login-config>
</login-config>
But, if the user access localhost/welcomeJSF.jsp the security container
does not call LOGIN FORM !!!!
Is very strange... because the administration not call LOGIN too !!!
Is default disabled ?
My web.xml is wrong ?
How to enable this feature?
--
-------------------------------------------------------------------------
++ Dyego Souza Dantas Leal ++ Dep. Desenvolvimento -------------------------------------------------------------------------
E S C R I B A I N F O R M A T I C A
*** http://javacoffe.blogspot.com ***
-------------------------------------------------------------------------
The only stupid question is the unasked one (somewhere in Linux's HowTo)
Linux registred user : #230601
-- ICQ : 1647350
$ look into "my eyes" Phone : +55 041 2106-1212
look: cannot open my eyes Fax : +55 041 3296-6640 -------------------------------------------------------------------------
Reply: dyego_at_escriba.com.br