users@glassfish.java.net

Re: Login configuration

From: Shing Wai Chan <Shing-Wai.Chan_at_Sun.COM>
Date: Mon, 06 Oct 2008 09:19:58 -0700

Is there any error message in server.log?
Shing Wai Chan

glassfish_at_javadesktop.org wrote:
> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>