tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manpreet" <manpreetnag...@yahoo.com>
Subject servlet question !!
Date Thu, 06 Jan 2000 19:47:53 GMT
HI all,

I have a small servlet code like this:

import java.io.*;
import javax.servlet.*;
import java.servlet.http/*;

public class Test extends HttpServlet {
        int count=0;
        public void doGet(HttpServletRequest req , HttpServletResponse res) throws       
 IOException , ServletException {
            PrintWriter out=res.getWriter();
            out.write(count++);
        }
}

Is it possible that each request to this servlet gets the initial value of count i.e. 0

thanks in advance ,
Manpreet Singh.


Mime
View raw message