aspose file tools*
The moose likes Java in General and the fly likes Authentication with JDBC Realms and with MVC pattern (servlet Controller to authentic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

Authentication with JDBC Realms and with MVC pattern (servlet Controller to authentic

Oscar Arnaiz
Greenhorn

Joined: Aug 26, 2002
Posts: 4
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.
Dave Vick
Ranch Hand

Joined: May 10, 2001
Posts: 3244
Oscar
Please do not cross post your questions to multiple forums. Most of the visitors here read in many of the forums and it is frustrating to see the same question repeated over and over. You have a better chance of getting a correct and timely answer if you post it to the most appropriate forum instead of using the shotgun approach and hoping you'll hit something.
Please reply to this thread here.
[ August 26, 2002: Message edited by: Dave Vick ]

Dave
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Authentication with JDBC Realms and with MVC pattern (servlet Controller to authentic