username « Security « JSP-Servlet Q&A

1. Servlet Security question about j_security_check, j_username and j_password

I used jdbcRealm in my web application and it's working fine. I defined all constraints also in my web.xml. Like all pages of url pattern /Admin/* should be accessed by only ...

2. Java servlet - any built-in way to restrict access to username/password?

I have an app engine java app. I'm defining my servlets in web.xml as usual, something like:

It works fine. Is there any "built-in" ...

3. How can I get j_username on my index.jsp after successful authentication with j_security_check?

I'm using j_security_check on a login.jsp. The server is GlassFish Server 3. It all works, when the user is authenticated it then opens index.jsp. My problem is I need to get ...