Hi Chuck, call j_security_check from inside another servlet is just an idea, why is bad idea?
If possible, I don't want a custom <Realm>, I want to use the authentication mechanism of the container (JDBCRealm), use something like this: ......... Context context = (Context) host.findChild("myContext"); Realm realm = context.getRealm(); String username = request.getParameter("j_username"); String password = request.getParameter("j_password"); Principal principal = realm.authenticate(username, password); if (principal == null) { // some tasks } else { // } But this give me problems with catalina.jar library inside of my .war file. Thanks. Alejandro On Thu, Oct 13, 2011 at 2:11 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Alejandro Soto [mailto:smalejan...@gmail.com] > > Subject: Re: filters on j_security_check > > > what i need is to know if the authentication was successful or not > > What are you going to do with said information? > > > I just need to know that status and has to be before the authentication > > mechanism continues. > > Why? It seems like you might actually need to write a custom <Realm>, not > a filter. > > > I am trying to invoke j_security_check from inside another servlet. > > That sounds really, really wrong. > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you received > this in error, please contact the sender and delete the e-mail and its > attachments from all computers. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >