username « Security « JSP-Servlet Q&A





1. Servlet Security question about j_security_check, j_username and j_password    stackoverflow.com

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?    stackoverflow.com

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

<servlet>
  <servlet-name>MyServlet</servlet-name>
  <servlet-class>com.me.MyServlet</servlet-class>
</servlet>
<servlet-mapping>
  <servlet-name>MyServlet</servlet-name>
  <url-pattern>/private/dangerous</url-pattern>
</servlet-mapping>
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?    stackoverflow.com

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 ...