FileDocCategorySizeDatePackage
SSICounter.javaAPI DocExample610Tue Jan 25 10:45:14 GMT 2000None

SSICounter

public class SSICounter extends GenericCounter

Fields Summary
Constructors Summary
Methods Summary
public voiddoGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)

    //PrintWriter out = res.getWriter();
    PrintWriter out = new PrintWriter(res.getOutputStream(), true);

    // Fetch the page we're on.
    String uri = req.getRequestURI();

    // Get and increment the count for that page
    int count = incrementAndGetCount(uri);

    // Fulfull our purpose: print the count
    out.println(count);