import java.io.*;
import java.text.*;
import java.util.*;

import javax.servlet.*;
import javax.servlet.http.*;

class DATI {

    String acLogin;
    String acPassWord;

    public DATI ()
    {
        acLogin="";
        acPassWord="";
    }
}


public class creaquery extends HttpServlet {


    public void doGet(HttpServletRequest request,
                      HttpServletResponse response)
        throws IOException, ServletException
        {
        PrintStream out;

        Sessione = request.getSession(true);

        String acLogin     = request.getParameter("acLogin");
        String acPassWord  = request.getParameter("acPassWord");

        if ( acLogin != null )
        {
                DATI Dati = (DATI)Sessione.getValue(acLogin);
                if (Dati!=null)
                {
                        //exist login and password
                        ....
                        ....
                        // and log client+n .....
                }
                else
                {
                        // not exist login and password
                        Dati.acLogin=acLogin;
                        Dati.acPassWord=acPassWord;
                        ....
                        // and log client .....
                        Sessione.putValue(acLogin,Dati );
                }
        }

.....
.....
.....
.....

        }
}


------------------------
  From: claudiu <[EMAIL PROTECTED]>
  Subject: loging
  Date: Tue, 4 Jul 2000 11:12:45 +0100
  To: [EMAIL PROTECTED]


---------------------------------------------------
e-mail: [EMAIL PROTECTED]


Subject: loging




 Hi all ,
 supposing I'm using Java Web Server 1.x
 what do I have to do to make a servlet that keeps log-files to a web site
 (when I say loging I mean Sessionid and the URL ) .What methods do I have
 to  use ?

thanks

 ps Any sugestion with other web servers is also good .

___________________________________________________________________________
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

---------------End of Original Message-----------------

--------------------------------------------------------
Name: Pollio
E-mail: [EMAIL PROTECTED]
Date: 07/04/2000
Time: 12:11:29
--------------------------------------------------------

___________________________________________________________________________
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

Reply via email to