Hello, I am developing a web application using the MVC pattern and I try to use to athenticate with JDBC Realms. My problem is that using this athentication method with a Controller servlet that forwards requests to a proper jsp page don�t works.
I don�t know to do. If someone know how I have to do to athenticate using a Controller servlet (I�m not using Struts).
I will explain with more detail:
I have a Controller servlet that receive all requests to others pages. This servlet must authenticate the user and if the user is athenticated forward to the proper protected page, else forward to a login page. I am using JDBC Realms to protect the folders that contains the pages must be accesed under authentication. the problem is that the servlet use the method forward(request, response) that jumps the security-contraint and it accessed to the protected pages. I don�t know hot to use the JDBC Realms with the Controller Servlet.