Hi Everybody
In JavaWebServer1.1.3 , there is an example servlet called <Protected Servelet>.
I have attached the source code for the above servlet for ur reference.
If you run this servlet it is asking username and password in pop-up winndow.
But the source code does not contain anyting related to do the above
stuff(asking Username and password).
And they have mentioned
##/*this servlet is protected by an ACL (user jeeves and password jeeves). */##
What does it mean.
Any help is highly appreciated.
Protected Servlet
This servlet simply outputs an html page. To demonstrate the basic
authentication scheme, this servlet is protected by an ACL (user jeeves and
password jeeves).
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
/**
* This is an example of a simple Servlet
*/
public class ProtectedServlet extends HttpServlet {
public void doGet (HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException
{
res.setContentType("text/html");
ServletOutputStream out = res.getOutputStream();
out.println("<HEAD><TITLE> ProtectedServlet Output
</TITLE></HEAD><BODY>");
out.println("<h1> ProtectedServlet Output </h1>");
out.println("<P>This is output from ProtectedServlet.");
out.println("</BODY>");
out.close();
}
public String getServletInfo() {
return "A simple servlet";
}
}
Thank you
Saminathan Seerangan
510-574-7898
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html