"Jithendra K.C" wrote:
> Hi,
> Anybody knows what actually j_security_check servlet will do in
> formbased application.
> Is there any possible to get the Source code for j_security_check. So
> that can customize the j_security_check code according to the applications.
At least in Tomcat, "j_security_check" is not actually a servlet -- it is part
of
the server's internal processing code that handles requests before a servlet is
ever called. The precise definition of what it does can be found in the Servlet
2.2 Specification, which can be downloaded at
<http://java.sun.com/products/servlet/download.html>. Section 11.5.3 describes
exactly what happens in what order.
To get a sense of what it does, have you ever logged on to a web site with a
protected area that pops up the username/password dialog (in other words, the
site
is using BASIC authentication)? What it feels like to the user, even though its
not what really happens, is that the system "remembers" your request while you
answer the username/password question. After you have identified yourself, the
system goes ahead and gives you the page you originally asked for, without you
having to ask for it again.
Form-based login is designed to give you the same basic user experience, but
with
the opportunity to have the login page look the way *you* want it to, instead of
the browser's default pop-up window. In general, you won't ever refer to the
login
page as part of your app itself -- you will just configure the security
constraints
in your web.xml file to protect the parts of your app that need it, and the
server
will use your login page if it needs to.
>
> bye and keep in touch
> Jithu
Craig McClanahan
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets