Back to the same problem.
I made the login work, but know my problem is this one.
I have my pages inside the folder "pages" and this is my web.xml
<security-constraint>
<web-resource-collection>
<web-resource-name>UnSecurePages</web-resource-name>
<description>UnSecurity</description>
<url-pattern>/css/*</url-pattern>
<url-pattern>/images/*</url-pattern>
<http-method>POST</http-method>
<http-method>GET</http-method>
</web-resource-collection>
</security-constraint>
<security-constraint>
<web-resource-collection>
<web-resource-name>SecurePages</web-resource-name>
<description>Security constraint</description>
<url-pattern>/*</url-pattern>
<http-method>POST</http-method>
<http-method>GET</http-method>
</web-resource-collection>
<auth-constraint>
<description></description>
<role-name>users</role-name>
</auth-constraint>
</security-constraint>
<security-role>
<description></description>
<role-name>users</role-name>
</security-role>
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/Login.jsp</form-login-page>
<form-error-page>/Login.jsp</form-error-page>
</form-login-config>
</login-config>
The thing is that when I try to access to the file inside pages show me the login screen, but once I log in all the images and css doesn't appear, it shows the page plane.
What Im doing wrong?
I have antoher question, It is possible to retrieve a message error in the Login.jsp from the login form?
[Message sent by forum member 'oleggunnar' (oleggunnar)]
http://forums.java.net/jive/thread.jspa?messageID=303434